Last change
on this file since 50 was 50, checked in by bcornec, 19 years ago |
mindi.spec sharable between distributions (natively OK for mdk/mdv)
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Id
|
File size:
916 bytes
|
Rev | Line | |
---|
[20] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
| 3 | # Creates RPMs environment from SVN repository
|
---|
[33] | 4 | #
|
---|
| 5 | # $Id: rpm-env 50 2005-10-07 22:43: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
|
---|
[50] | 24 | export TOPDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'`
|
---|
[20] | 25 | else
|
---|
| 26 | export TOPDIR=${BASE}/RPMS
|
---|
| 27 | fi
|
---|
| 28 | cd ${TOPDIR}
|
---|
| 29 | mkdir -p RPMS SRPMS SPECS SOURCES BUILD
|
---|
| 30 |
|
---|
[50] | 31 | export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/mindi.spec | egrep '^%define version' | awk '{print $3}' | sed "s/[ ]*//"`
|
---|
| 32 | export MONDO_VER=`cat ${BASE}/svn/${VER}/mondo/mondo.spec | egrep '^%define version' | awk '{print $3}' | sed "s/[ ]*//"`
|
---|
Note:
See
TracBrowser
for help on using the repository browser.