Last change
on this file since 46 was 46, checked in by bcornec, 20 years ago |
tag using branches/2.04_berlios
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Id
|
File size:
887 bytes
|
Rev | Line | |
---|
[20] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
| 3 | # Creates RPMs environment from SVN repository
|
---|
[33] | 4 | #
|
---|
| 5 | # $Id: rpm-env 46 2005-10-05 15:06:16Z bcornec $
|
---|
| 6 | #
|
---|
[20] | 7 |
|
---|
| 8 | # Adapt to your needs
|
---|
[33] | 9 | export BASE=${HOME}/mondo
|
---|
[20] | 10 | export SVNAUTH=bcornec@shell.berlios.de
|
---|
[27] | 11 | export DSTDIR=/home/groups/ftp/pub/mondorescue
|
---|
[21] | 12 | export FTPURL="ftp.berlios.de /incoming"
|
---|
[20] | 13 |
|
---|
| 14 | # Should not be modified below
|
---|
[46] | 15 | export VER=branches/2.04_berlios
|
---|
[20] | 16 | export pkg=""
|
---|
| 17 | export opt=""
|
---|
| 18 | export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
|
---|
| 19 |
|
---|
| 20 | mkdir -p ${BASE}/RPMS
|
---|
| 21 | export TMP=${BASE}/tmp
|
---|
| 22 | mkdir -p ${TMP}
|
---|
| 23 | if [ -f ${HOME}/.rpmmacros ]; then
|
---|
| 24 | export TOPDIR=`grep _topdir ${HOME}/.rpmmacros | awk '{print $2}'`
|
---|
| 25 | else
|
---|
| 26 | export TOPDIR=${BASE}/RPMS
|
---|
| 27 | fi
|
---|
| 28 | cd ${TOPDIR}
|
---|
| 29 | mkdir -p RPMS SRPMS SPECS SOURCES BUILD
|
---|
| 30 |
|
---|
| 31 | export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/mindi.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[ ]*//"`
|
---|
| 32 | 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.