diff options
author | David Williams | 2013-02-03 07:50:05 +0000 |
---|---|---|
committer | David Williams | 2013-02-03 07:50:05 +0000 |
commit | 0b414c3cc74089e1857446e9aced0c4f760c7d86 (patch) | |
tree | 9431bf93a18c6a9a8ecca8bfecbc2fcce0857e43 /production/master-build.sh | |
parent | c7d9ffcb05b2e78806d71c3822f5ca775b302c79 (diff) | |
download | eclipse.platform.releng.aggregator-0b414c3cc74089e1857446e9aced0c4f760c7d86.tar.gz eclipse.platform.releng.aggregator-0b414c3cc74089e1857446e9aced0c4f760c7d86.tar.xz eclipse.platform.releng.aggregator-0b414c3cc74089e1857446e9aced0c4f760c7d86.zip |
Bug 399795 - misc changes to production script variable names, functions
Diffstat (limited to 'production/master-build.sh')
-rw-r--r-- | production/master-build.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/production/master-build.sh b/production/master-build.sh index e4c92e73d..361a4d0f6 100644 --- a/production/master-build.sh +++ b/production/master-build.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # master script to drive Eclipse Platform builds. - +RAWDATE=$( date +%s ) if [ $# -ne 1 ]; then echo USAGE: $0 env_file @@ -37,6 +37,8 @@ checkForErrorExit $? "Could not create buildlogs directory" LOG=$buildDirectory/buildlogs/buildOutput.txt #exec >>$LOG 2>&1 +BUILD_PRETTY_DATE=$( date --date='@'$RAWDATE ) + # These files have variable/value pairs for this build, suitable for use in # shell scripts, PHP files, or as Ant (or Java) properties BUILD_ENV_FILE=${buildDirectory}/buildproperties.shsource @@ -49,6 +51,15 @@ export LOCAL_REPO="${BUILD_ROOT}"/localMavenRepo export STREAMS_PATH="${aggDir}/streams" +BUILD_TYPE_NAME="Integration" +if [ "$BUILD_TYPE" = M ]; then + BUILD_TYPE_NAME="Maintenance" + elif [ "$BUILD_TYPE" = N ]; then + BUILD_TYPE_NAME="Nightly (HEAD)" + elif [ "$BUILD_TYPE" = S ]; then + BUILD_TYPE_NAME="Stable (Milestone)" +fi + # These variables, from original env file, are re-written to BUILD_ENV_FILE, # with values for this build (some of them computed) partially for documentation, and # partially so this build can be re-ran or re-started using it, instead of @@ -84,7 +95,8 @@ fn-write-property STREAMS_PATH # any value of interest/usefulness can be added to BUILD_ENV_FILE fn-write-property BUILD_ENV_FILE fn-write-property BUILD_ID -fn-write-property BUILD_DATE +fn-write-property BUILD_PRETTY_DATE +fn-write-property BUILD_TYPE_NAME # dump ALL environment variables in case its helpful in documenting or # debugging build results or differences between runs, especially on different machines |