Last change
on this file since 30 was 30, checked in by bcornec, 19 years ago |
Id property added on files to allow for better conf. management
|
-
Property svn:keywords
set to
Id
|
File size:
859 bytes
|
Rev | Line | |
---|
[20] | 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
|
---|
[27] | 8 | export DSTDIR=/home/groups/ftp/pub/mondorescue
|
---|
[21] | 9 | export FTPURL="ftp.berlios.de /incoming"
|
---|
[20] | 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.