source: MondoRescue/trunk/tools/rpm-env@ 21

Last change on this file since 21 was 21, checked in by bcornec, 19 years ago

delivery to ftp on berlios to allow publication

File size: 858 bytes
Line 
1#!/bin/bash
2#
3# Creates RPMs environment from SVN repository
4
5# Adapt to your needs
6export BASE=/bruno/mondo
7export SVNAUTH=bcornec@shell.berlios.de
8export DSTDIR=/home/groups/mondorescue/htdocs
9export FTPURL="ftp.berlios.de /incoming"
10
11# Should not be modified below
12export VER=trunk
13export pkg=""
14export opt=""
15export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
16
17mkdir -p ${BASE}/RPMS
18export TMP=${BASE}/tmp
19mkdir -p ${TMP}
20if [ -f ${HOME}/.rpmmacros ]; then
21 export TOPDIR=`grep _topdir ${HOME}/.rpmmacros | awk '{print $2}'`
22else
23 export TOPDIR=${BASE}/RPMS
24fi
25cd ${TOPDIR}
26mkdir -p RPMS SRPMS SPECS SOURCES BUILD
27
28export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/mindi.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[ ]*//"`
29export 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.