Skip to content

Commit 636f223

Browse files
author
Aaron Klingaman
committedMay 9, 2005
- 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
1 parent 8f4ce25 commit 636f223

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed
 

‎build.sh

+13-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ CONFIGURATIONS_DIR=configurations/
99
BUILD_DIR=build/
1010

1111
BOOTCD_VERSION="3.0-beta0.4"
12-
FULL_VERSION_STRING="PlanetLab BootCD $BOOTCD_VERSION"
13-
12+
FULL_VERSION_STRING="PlanetLab BootCD"
13+
OUTPUT_IMAGE_NAME='PlanetLab-BootCD'
14+
1415
SYSLINUX_SRC=sources/syslinux-2.11.tar.bz2
1516

1617
BOOTCD_YUM_GROUP=BootCD
@@ -266,16 +267,24 @@ if [[ "$1" == "clean" || "$1" == "burn" || "$1" == "build" ]]; then
266267
. $CURRENT_CONFIG_DIR/configuration
267268

268269
# setup vars for this configuration
270+
271+
# version string for this build
269272
if [[ ! -z "$EXTRA_VERSION" ]]; then
270-
FULL_VERSION_STRING="$FULL_VERSION_STRING-$EXTRA_VERSION"
273+
FULL_VERSION_STRING="$FULL_VERSION_STRING $EXTRA_VERSION"
271274
fi
275+
FULL_VERSION_STRING="$FULL_VERSION_STRING $BOOTCD_VERSION"
272276

273277
# destination image
278+
if [[ ! -z "$EXTRA_VERSION" ]]; then
279+
OUTPUT_IMAGE_NAME="$OUTPUT_IMAGE_NAME-$EXTRA_VERSION"
280+
fi
281+
OUTPUT_IMAGE_NAME="$OUTPUT_IMAGE_NAME-$BOOTCD_VERSION"
282+
283+
# setup build directories
274284
BUILD_DIR=build/$configuration
275285
mkdir -p $BUILD_DIR
276286
ISO=$BUILD_DIR/`echo $OUTPUT_IMAGE_NAME | sed -e "s/%version/$BOOTCD_VERSION/"`.iso
277287

278-
# built cd root
279288
CD_ROOT=`pwd`/$BUILD_DIR/cdroot
280289
mkdir -p $CD_ROOT
281290

‎configurations/default/configuration

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
# no backup server.
44
#
55

6-
# the name of the cd image. %version is replaced with the current
7-
# cd version (from build.sh)
8-
OUTPUT_IMAGE_NAME='PlanetLab-BootCD-%version'
9-
106
# extra version, if set, is added to end of version.
117
EXTRA_VERSION=
128

0 commit comments

Comments
 (0)
Please sign in to comment.