Changeset 33 for trunk/tools/mkrpm


Ignore:
Timestamp:
Sep 29, 2005, 3:11:40 AM (15 years ago)
Author:
bcornec
Message:

Finer use of the release concept for tagging and delivery

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/mkrpm

    r30 r33  
    22#
    33# Creates RPMs packages from SVN repository for local tests
     4#
     5# $Id$
     6#
    47
    5 . ./rpm-env
     8dname=`dirname $0`
     9prem=`echo $dname |cut -c1`
     10if [ ${prem} == "/" ]; then
     11    export TOOLHOME=$dname
     12else
     13    export TOOLHOME=${PWD}/$dname
     14fi
     15
     16. $TOOLHOME/rpm-env
     17
     18rev=`$TOOLHOME/mksvnversion`
    619
    720if [ "$1" = "" ]; then
     
    2336    cp mindi-${MINDI_VER}/mindi.spec ${TOPDIR}/SPECS/mindi.spec
    2437    rm -f ${TMP}/mindi-*-root
    25     pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-1.${ARCH}.rpm"
     38    pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}.${ARCH}.rpm"
    2639    # ATTENTION: This could be dangerous for your setup
    2740    opt="rm -rf /usr/share/mindi ;"
     
    4255    cp mondo-${MONDO_VER}/mondo.spec ${TOPDIR}/SPECS/mondo.spec
    4356    rm -f ${TMP}/mondo-*-root
    44     pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-1.${ARCH}.rpm"
     57    pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${rev}.${ARCH}.rpm"
    4558fi
    4659cd ${TOPDIR}/SPECS
Note: See TracChangeset for help on using the changeset viewer.