Ignore:
Timestamp:
Jan 26, 2009, 4:39:46 PM (16 years ago)
Author:
joergs
Message:

cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/technical/common/build/build.sh

    r733 r734  
    5454[ -z $DEST_DIR ] && DEST_DIR="/tmp/build.$BUILDUSER"
    5555BUILDTEMP=$DEST_DIR/buildsrc/
    56 #BUILDSCRIPT=$BUILDTEMP/buildscript.$$
    5756BUILDVARS=$BUILDTEMP/build.vars
    5857
     
    6362if [ -r $CONFIG_FILE ]; then
    6463        source $CONFIG_FILE
    65     # case "$BUILD_DIST" in
    66     #     "9.0-i386")   
    67     #         BUILD_RPMS_TEST=$BUILD_RPMS_9_0_i386 ;;
    68     #     "sles8-i386")
    69     #         BUILD_RPMS_TEST=$BUILD_RPMS_sles8_i386 ;;
    70     #     "sles8-i386+update") 
    71     #         BUILD_RPMS_TEST=$BUILD_RPMS_sles8_i386_update ;;
    72     #     "9.1-i386")   
    73     #         BUILD_RPMS_TEST=$BUILD_RPMS_9_1_i386 ;;
    74     #     "sles9-i386")
    75     #         BUILD_RPMS_TEST=$BUILD_RPMS_sles9_i386 ;;
    76     #     "9.2-i386")   
    77     #         BUILD_RPMS_TEST=$BUILD_RPMS_9_2_i386 ;;
    78     #     "9.3-i386")   
    79     #         BUILD_RPMS_TEST=$BUILD_RPMS_9_3_i386 ;;
    80     #     "10.0-i386")
    81     #         BUILD_RPMS_TEST=$BUILD_RPMS_10_0_i386 ;;
    82     #     "10.1-i386")
    83     #         BUILD_RPMS_TEST=$BUILD_RPMS_10_1_i386 ;;
    84     #     "10.2-i386")
    85     #         BUILD_RPMS_TEST=$BUILD_RPMS_10_2_i386 ;;
    86     #     "10.3-i386")
    87     #         BUILD_RPMS_TEST=$BUILD_RPMS_10_3_i386 ;;
    88     # esac
    89 
    9064    MOD_BUILD_DIST=`sed "s/[-+.]/_/g" <<< $BUILD_DIST`
    9165    echo MOD_BUILD_DIST: $MOD_BUILD_DIST
    9266    eval BUILD_RPMS_TEST=\$BUILD_RPMS_$MOD_BUILD_DIST
    93     #echo $BUILD_RPMS_TEST
    9467
    9568        if [ "$BUILD_RPMS_TEST" ]; then
     
    128101
    129102
    130 rm -rf ${BUILDTEMP}/src/${PACKAGE};
     103rm -rf ${BUILDTEMP}/src/${PACKAGE}
    131104mkdir -p ${BUILDTEMP}/src/${PACKAGE}
    132 # ${BUILDTEMP}/${BUILD_DIST};
     105
    133106
    134107if [ "$1" ]; then
     
    221194fi
    222195
    223 # # create buildscript
    224 # cat > $BUILDSCRIPT <<EOF
    225 # #!/bin/bash
    226 # # local buildscript
    227 # export BUILD_ROOT=$BUILD_ROOT
    228 # export BUILD_DIST=$BUILD_DIST
    229 # export BUILD_RPMS=${DEST_DIR}/${BUILD_DIST}:$BUILD_RPMS
    230 # export BUILD_PREPARE_SPEC=$BUILD_PREPARE_SPEC
    231 #
    232 # cd ${BUILDTEMP}/src/${PACKAGE}
    233 # $BUILD_CMD $BUILD_MODE
    234 # EOF
    235 #
    236 # chmod a+x $BUILDSCRIPT
    237 # sudo /bin/su -c $BUILDSCRIPT
    238 # rm -f $BUILDSCRIPT
    239 
    240196# create file for buildvars (see $BUILDSCRIPT)
    241197cat > $BUILDVARS <<EOF
     
    251207EOF
    252208
     209# starting Suse build (as root)
    253210sudo $BUILDSCRIPT $BUILDVARS
    254211#rm -f $BUILDVARS
Note: See TracChangeset for help on using the changeset viewer.