source: trunk/rpm-env @ 19

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

Improve delivery script to BerliOS

  • Property svn:executable set to *
File size: 817 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
9
10# Should not be modified below
11export VER=trunk
12export pkg=""
13export opt=""
14export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
15
16mkdir -p ${BASE}/RPMS
17export TMP=${BASE}/tmp
18mkdir -p ${TMP}
19if [ -f ${HOME}/.rpmmacros ]; then
20    export TOPDIR=`grep _topdir ${HOME}/.rpmmacros | awk '{print $2}'`
21else
22    export TOPDIR=${BASE}/RPMS
23fi
24cd ${TOPDIR}
25mkdir -p RPMS SRPMS SPECS SOURCES BUILD
26
27export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/mindi.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[  ]*//"`
28export 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.