Last change
on this file since 19 was
19,
checked in by bcornec, 16 years ago
|
Improve delivery script to BerliOS
|
-
Property svn:executable set to
*
|
File size:
817 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 | |
---|
10 | # Should not be modified below |
---|
11 | export VER=trunk |
---|
12 | export pkg="" |
---|
13 | export opt="" |
---|
14 | export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'` |
---|
15 | |
---|
16 | mkdir -p ${BASE}/RPMS |
---|
17 | export TMP=${BASE}/tmp |
---|
18 | mkdir -p ${TMP} |
---|
19 | if [ -f ${HOME}/.rpmmacros ]; then |
---|
20 | export TOPDIR=`grep _topdir ${HOME}/.rpmmacros | awk '{print $2}'` |
---|
21 | else |
---|
22 | export TOPDIR=${BASE}/RPMS |
---|
23 | fi |
---|
24 | cd ${TOPDIR} |
---|
25 | mkdir -p RPMS SRPMS SPECS SOURCES BUILD |
---|
26 | |
---|
27 | export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/mindi.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[ ]*//"` |
---|
28 | 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.