|
Last change
on this file since 19 was 19, checked in by bcornec, 20 years ago |
|
Improve delivery script to BerliOS
|
-
Property svn:executable
set to
*
|
|
File size:
817 bytes
|
| Rev | Line | |
|---|
| [17] | 1 | #!/bin/bash
|
|---|
| 2 | #
|
|---|
| [19] | 3 | # Creates RPMs environment from SVN repository
|
|---|
| [17] | 4 |
|
|---|
| 5 | # Adapt to your needs
|
|---|
| [19] | 6 | export BASE=/bruno/mondo
|
|---|
| 7 | export SVNAUTH=bcornec@shell.berlios.de
|
|---|
| 8 | export DSTDIR=/home/groups/mondorescue/htdocs
|
|---|
| [17] | 9 |
|
|---|
| 10 | # Should not be modified below
|
|---|
| [19] | 11 | export VER=trunk
|
|---|
| 12 | export pkg=""
|
|---|
| 13 | export opt=""
|
|---|
| 14 | export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
|
|---|
| [17] | 15 |
|
|---|
| 16 | mkdir -p ${BASE}/RPMS
|
|---|
| [19] | 17 | export TMP=${BASE}/tmp
|
|---|
| [18] | 18 | mkdir -p ${TMP}
|
|---|
| 19 | if [ -f ${HOME}/.rpmmacros ]; then
|
|---|
| [19] | 20 | export TOPDIR=`grep _topdir ${HOME}/.rpmmacros | awk '{print $2}'`
|
|---|
| [18] | 21 | else
|
|---|
| [19] | 22 | export TOPDIR=${BASE}/RPMS
|
|---|
| [18] | 23 | fi
|
|---|
| 24 | cd ${TOPDIR}
|
|---|
| [17] | 25 | mkdir -p RPMS SRPMS SPECS SOURCES BUILD
|
|---|
| 26 |
|
|---|
| [19] | 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.