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

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

some fies needs to be executables

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