# Define default settings
#
export DIST=squeeze
-export PB_SUITE=$DISTRIBUTION
export TARGET_BASE=/srv/storage-kernels
+if test -z "$DISTRIBUTION"; then
+ echo "$0: Environment variable \$DISTRIBUTION not set or empty." >&2
+ exit 1
+fi
# get the last build number of the given target,
# parsing tarball's file name under /srv/storage-kernels/.
echo $retval
}
-# overwrite PB_SUITE with branch name
-export PB_SUITE=$(echo $GIT_BRANCH_NAME | tr '/' '-' | sed -e "s/^\(feature\|bugfix\|poc\)-/dev-\1-/g")
-
case $DISTRIBUTION in
production-proposed-updates)
export TARGET_NAME=master
"
;;
experimental|dev_feature*)
- [ -n "$PB_SUITE" ] && export TARGET_NAME=$(echo $PB_SUITE | sed 's/^dev_feature_/squeeze-feature-/') || export TARGET_NAME="experimental"
+ TARGET_NAME=$(echo $DISTRIBUTION | sed 's/^dev_feature_/squeeze-feature-/')
LAST_DEVELOP_BUILD_NO=$(get_last_target_build_no develop)
BUILD_NUMBER="$LAST_DEVELOP_BUILD_NO.$(printf %03d $BUILD_NUMBER)"