Changeset 19 for trunk/mkrpm


Ignore:
Timestamp:
Sep 7, 2005, 7:35:26 PM (15 years ago)
Author:
bcornec
Message:

Improve delivery script to BerliOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkrpm

    r18 r19  
    33# Creates RPMs packages from SVN repository for local tests
    44
    5 # Adapt to your needs
    6 BASE=/bruno/mondo
    7 # Look at opt below if this is dangerous for you or not.
    8 
    9 # Should not be modified below
    10 VER=trunk
    11 pkg=""
    12 opt=""
    13 ARCH=`/bin/arch`
    14 
    15 mkdir -p ${BASE}/RPMS
    16 TMP=${BASE}/tmp
    17 mkdir -p ${TMP}
    18 if [ -f ${HOME}/.rpmmacros ]; then
    19     TOPDIR=`grep _topdir ${HOME}/.rpmmacros | awk '{print $2}'`
    20 else
    21     TOPDIR=${BASE}/RPMS
    22 fi
    23 cd ${TOPDIR}
    24 mkdir -p RPMS SRPMS SPECS SOURCES BUILD
     5. ./rpm-env
    256
    267if [ "$1" = "" ]; then
     
    3112if [ "`echo $c | grep mindi`" != "" ]; then
    3213    cd ${BASE}/svn
    33     MINDI_VER=`cat ${VER}/mindi/mindi.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[     ]*//"`
    3414    echo "Management of mindi ${MINDI_VER}"
    3515    rm -fr mindi-${MINDI_VER}
     
    3717    find mindi-${MINDI_VER} -type d -name .svn | xargs rm -rf
    3818    find mindi-${MINDI_VER} -type f -name '.*.swp' | xargs rm -rf
     19    find mindi-${MINDI_VER} -type f -name '*~' | xargs rm -rf
    3920    rm -f mindi-${MINDI_VER}/parted2fdisk mindi-${MINDI_VER}/parted2fdisk.c mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64
    4021    mkdir -p ${TOPDIR}/SOURCES
     
    4829if [ "`echo $c | grep  mondo`" != "" ]; then
    4930    cd ${BASE}/svn
    50     MONDO_VER=`cat ${VER}/mondo/mondo.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[     ]*//"`
     31    echo "Management of mondo ${MONDO_VER}"
    5132    rm -rf mondo-${MONDO_VER}
    5233    cp -a ${VER}/mondo mondo-${MONDO_VER}
     
    5637    find . -type d -name .svn | xargs rm -rf
    5738    find . -type f -name '.*.swp' | xargs rm -rf
     39    find . -type f -name '*~' | xargs rm -rf
    5840    cd ..
    5941    tar cvfhz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz mondo-${MONDO_VER}
Note: See TracChangeset for help on using the changeset viewer.