Changeset 734 for trunk/technical/common/build
- Timestamp:
- Jan 26, 2009, 4:39:46 PM (16 years ago)
- Location:
- trunk/technical/common/build
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/technical/common/build/build.sh
r733 r734 54 54 [ -z $DEST_DIR ] && DEST_DIR="/tmp/build.$BUILDUSER" 55 55 BUILDTEMP=$DEST_DIR/buildsrc/ 56 #BUILDSCRIPT=$BUILDTEMP/buildscript.$$57 56 BUILDVARS=$BUILDTEMP/build.vars 58 57 … … 63 62 if [ -r $CONFIG_FILE ]; then 64 63 source $CONFIG_FILE 65 # case "$BUILD_DIST" in66 # "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 # esac89 90 64 MOD_BUILD_DIST=`sed "s/[-+.]/_/g" <<< $BUILD_DIST` 91 65 echo MOD_BUILD_DIST: $MOD_BUILD_DIST 92 66 eval BUILD_RPMS_TEST=\$BUILD_RPMS_$MOD_BUILD_DIST 93 #echo $BUILD_RPMS_TEST94 67 95 68 if [ "$BUILD_RPMS_TEST" ]; then … … 128 101 129 102 130 rm -rf ${BUILDTEMP}/src/${PACKAGE} ;103 rm -rf ${BUILDTEMP}/src/${PACKAGE} 131 104 mkdir -p ${BUILDTEMP}/src/${PACKAGE} 132 # ${BUILDTEMP}/${BUILD_DIST}; 105 133 106 134 107 if [ "$1" ]; then … … 221 194 fi 222 195 223 # # create buildscript224 # cat > $BUILDSCRIPT <<EOF225 # #!/bin/bash226 # # local buildscript227 # export BUILD_ROOT=$BUILD_ROOT228 # export BUILD_DIST=$BUILD_DIST229 # export BUILD_RPMS=${DEST_DIR}/${BUILD_DIST}:$BUILD_RPMS230 # export BUILD_PREPARE_SPEC=$BUILD_PREPARE_SPEC231 #232 # cd ${BUILDTEMP}/src/${PACKAGE}233 # $BUILD_CMD $BUILD_MODE234 # EOF235 #236 # chmod a+x $BUILDSCRIPT237 # sudo /bin/su -c $BUILDSCRIPT238 # rm -f $BUILDSCRIPT239 240 196 # create file for buildvars (see $BUILDSCRIPT) 241 197 cat > $BUILDVARS <<EOF … … 251 207 EOF 252 208 209 # starting Suse build (as root) 253 210 sudo $BUILDSCRIPT $BUILDVARS 254 211 #rm -f $BUILDVARS -
trunk/technical/common/build/buildscript
r733 r734 18 18 else 19 19 echo "File $1 not readable" 20 exit 220 exit 3 21 21 fi 22 22 else 23 23 echo "usage: `basename $0` <file for build-definitions>" 24 exit 124 exit 2 25 25 fi 26 26
Note:
See TracChangeset
for help on using the changeset viewer.