From: Aaron Klingaman Date: Mon, 9 May 2005 15:04:54 +0000 (+0000) Subject: - make the EXTRA_VERSION part come before the primary version, so the X-Git-Tag: BOOTCD_V_3_0_FINAL~3 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=636f223881e5f8593223a25ac3b12bea9736a6c6 - make the EXTRA_VERSION part come before the primary version, so the version files on the boot cd always end with the major/minor numbers (easier parsing) - remove ability to specify output iso name, build it from the version info --- diff --git a/build.sh b/build.sh index 03aaa18..c165075 100755 --- a/build.sh +++ b/build.sh @@ -9,8 +9,9 @@ CONFIGURATIONS_DIR=configurations/ BUILD_DIR=build/ BOOTCD_VERSION="3.0-beta0.4" -FULL_VERSION_STRING="PlanetLab BootCD $BOOTCD_VERSION" - +FULL_VERSION_STRING="PlanetLab BootCD" +OUTPUT_IMAGE_NAME='PlanetLab-BootCD' + SYSLINUX_SRC=sources/syslinux-2.11.tar.bz2 BOOTCD_YUM_GROUP=BootCD @@ -266,16 +267,24 @@ if [[ "$1" == "clean" || "$1" == "burn" || "$1" == "build" ]]; then . $CURRENT_CONFIG_DIR/configuration # setup vars for this configuration + + # version string for this build if [[ ! -z "$EXTRA_VERSION" ]]; then - FULL_VERSION_STRING="$FULL_VERSION_STRING-$EXTRA_VERSION" + FULL_VERSION_STRING="$FULL_VERSION_STRING $EXTRA_VERSION" fi + FULL_VERSION_STRING="$FULL_VERSION_STRING $BOOTCD_VERSION" # destination image + if [[ ! -z "$EXTRA_VERSION" ]]; then + OUTPUT_IMAGE_NAME="$OUTPUT_IMAGE_NAME-$EXTRA_VERSION" + fi + OUTPUT_IMAGE_NAME="$OUTPUT_IMAGE_NAME-$BOOTCD_VERSION" + + # setup build directories BUILD_DIR=build/$configuration mkdir -p $BUILD_DIR ISO=$BUILD_DIR/`echo $OUTPUT_IMAGE_NAME | sed -e "s/%version/$BOOTCD_VERSION/"`.iso - # built cd root CD_ROOT=`pwd`/$BUILD_DIR/cdroot mkdir -p $CD_ROOT diff --git a/configurations/default/configuration b/configurations/default/configuration index bbbb96e..b06db1f 100644 --- a/configurations/default/configuration +++ b/configurations/default/configuration @@ -3,10 +3,6 @@ # no backup server. # -# the name of the cd image. %version is replaced with the current -# cd version (from build.sh) -OUTPUT_IMAGE_NAME='PlanetLab-BootCD-%version' - # extra version, if set, is added to end of version. EXTRA_VERSION=