Last change
on this file since 21 was 21, checked in by bcornec, 20 years ago |
delivery to ftp on berlios to allow publication
|
File size:
858 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | # Creates RPMs environment from SVN repository
|
---|
4 |
|
---|
5 | # Adapt to your needs
|
---|
6 | export BASE=/bruno/mondo
|
---|
7 | export SVNAUTH=bcornec@shell.berlios.de
|
---|
8 | export DSTDIR=/home/groups/mondorescue/htdocs
|
---|
9 | export FTPURL="ftp.berlios.de /incoming"
|
---|
10 |
|
---|
11 | # Should not be modified below
|
---|
12 | export VER=trunk
|
---|
13 | export pkg=""
|
---|
14 | export opt=""
|
---|
15 | export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
|
---|
16 |
|
---|
17 | mkdir -p ${BASE}/RPMS
|
---|
18 | export TMP=${BASE}/tmp
|
---|
19 | mkdir -p ${TMP}
|
---|
20 | if [ -f ${HOME}/.rpmmacros ]; then
|
---|
21 | export TOPDIR=`grep _topdir ${HOME}/.rpmmacros | awk '{print $2}'`
|
---|
22 | else
|
---|
23 | export TOPDIR=${BASE}/RPMS
|
---|
24 | fi
|
---|
25 | cd ${TOPDIR}
|
---|
26 | mkdir -p RPMS SRPMS SPECS SOURCES BUILD
|
---|
27 |
|
---|
28 | export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/mindi.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[ ]*//"`
|
---|
29 | export MONDO_VER=`cat ${BASE}/svn/${VER}/mondo/mondo.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[ ]*//"`
|
---|
Note:
See
TracBrowser
for help on using the repository browser.