add pack200 to promote script
diff --git a/releng.control/promote.sh b/releng.control/promote.sh
index 35b218f..f7afbac 100755
--- a/releng.control/promote.sh
+++ b/releng.control/promote.sh
@@ -10,7 +10,8 @@
printf "\n\t\t%s\t%s" "-d" "delete old builds" >&2
printf "\n\t\t%s\t%s" "-s" "send notification mail" >&2
printf "\n\t\t%s\t%s" "-c" "copy the build from committers to downloads" >&2
- printf "\n\t\t%s\t%s" "-z" "process artifacts (create pack200 gz jars, etc.) Remember, is long running." >&2
+ printf "\n\t\t%s\t%s" "-z" "process artifacts (create pack200 gz jars, etc.) Remember, is long running" >&2
+ printf "\n\t\t%s\t%s" "-a" "add properties" >&2
printf "\n\t\t%s\t%s\n" "-h" "this help message" >&2
}
@@ -21,7 +22,8 @@
doCopy=
projectname=
processArtifacts=
-while getopts 'hvdcszp:' OPTION
+addProperties=
+while getopts 'hvdcszap:' OPTION
do
case $OPTION in
h) usage
@@ -36,6 +38,8 @@
s) sendmail=1
;;
z) processArtifacts=1
+ ;;
+ a) addProperties=1
;;
p) projectname=$OPTARG
;;
@@ -93,7 +97,7 @@
if [ ! \( -d ${promoteProjectDir} \) ]
then
- printf "\n\t%s\n" "Error: directory ${promoteProjectDir} does not exist." >&2
+ printf "\n\t%s\n" "ERROR: directory ${promoteProjectDir} does not exist." >&2
usage
exit 4
fi
@@ -180,6 +184,15 @@
fi
fi
+# TODO: we currently do not add properties to tests repo ... maybe should? for mirror URL, at least.
+# TODO: a fourth argument can be specified to provide stats suffix
+# such as _helios_SR2, _indigo_SR0 ... but, takes some customization updated fairly often, to be accurate.
+if [[ addProperties -a \( -d "${repoDirLocation}" \) ]]
+then
+ ${RELENG_CONTROL}/addRepoProperties.sh "${repoDirLocation}" "${buildBranch}" "${dropDirName}"
+fi
+
+
if [ "patches" == $distribution ]
then
TODIR=${DOWNLOAD_ROOT}/webtools/patches/drops/${buildBranch}/