source: trunk/tools/rpm-env @ 30

Last change on this file since 30 was 30, checked in by bcornec, 14 years ago

Id property added on files to allow for better conf. management

  • Property svn:keywords set to Id
File size: 859 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/ftp/pub/mondorescue
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.