Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2013-06-16 23:55:35 -0400
committerDavid Williams2013-06-16 23:55:35 -0400
commite73c28b11a14aad4028bb23c1aa6408e22a723a8 (patch)
tree0fa0d8992e5b7324d4b743f91d23a5c1ee1abe7f
parent9589b125ccbfda047125b9542fc5e3742cbbf81d (diff)
downloadeclipse.platform.releng.aggregator-e73c28b11a14aad4028bb23c1aa6408e22a723a8.tar.gz
eclipse.platform.releng.aggregator-e73c28b11a14aad4028bb23c1aa6408e22a723a8.tar.xz
eclipse.platform.releng.aggregator-e73c28b11a14aad4028bb23c1aa6408e22a723a8.zip
[releng] prep for Release promotion
-rwxr-xr-xproduction/sdk/renameBuild.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/production/sdk/renameBuild.sh b/production/sdk/renameBuild.sh
index 672cc7d0..d63d9108 100755
--- a/production/sdk/renameBuild.sh
+++ b/production/sdk/renameBuild.sh
@@ -58,6 +58,9 @@ perl -w -pi -e ${replaceCommand} ${oldname}/checksum/*
# Integration --> Release Candidate
# Integration --> Release
# These are for cases where used in headers, titles, etc.
+# TODO: final "fall through" case should be based on matching
+# new label with digits only, such as "4.3" ... not sure
+# if this would work for Equinox "Kepler" or "Kepler Released Build"?
oldString="Integration Build"
if [[ "${newlabel}" =~ .*RC.* ]]
@@ -65,12 +68,12 @@ then
newString="Release Candidate Build"
elif [[ "${newlabel}" =~ .*R.* ]]
then
- newString="Released Build"
+ newString="Release Build"
elif [[ "${newlabel}" =~ .*S.* ]]
then
newString="Stable Build"
else
- newString="Unknown Build Type"
+ newString="Release Build"
fi
replaceBuildNameCommand="s!${oldString}!${newString}!g"
@@ -82,6 +85,10 @@ perl -w -pi -e "${replaceBuildNameCommand}" ${oldname}/*.php
# to rebuild, say using buildproperties.shsource, would be best to work
# from original values. Less sure what to do with Ant properties,
# buildproperties.properties ... but, we'll decide when needed.
+# TODO: New label doesn't have "R" in it ... just, for example, "4.3".
+# for now, we'll "fall through" to "R", if doesn't match anything else,
+# but this won't work well if/when we add others, such as X or T for test
+# builds.
oldString="BUILD_TYPE = \"I\""
if [[ "${newlabel}" =~ .*RC.* ]]
then
@@ -93,7 +100,7 @@ elif [[ "${newlabel}" =~ .*S.* ]]
then
newString="BUILD_TYPE = \"S\""
else
- newString="BUILD_TYPE = \"T\""
+ newString="BUILD_TYPE = \"R\""
fi
replaceBuildNameCommand="s!${oldString}!${newString}!g"
@@ -106,12 +113,12 @@ then
newString="BUILD_TYPE_NAME = \"Release Candidate\""
elif [[ "${newlabel}" =~ .*R.* ]]
then
- newString="BUILD_TYPE_NAME = \"Released\""
+ newString="BUILD_TYPE_NAME = \"Release\""
elif [[ "${newlabel}" =~ .*S.* ]]
then
newString="BUILD_TYPE_NAME = \"Stable\""
else
- newString="BUILD_TYPE_NAME = \"Unknown Type\""
+ newString="BUILD_TYPE_NAME = \"Release\""
fi
replaceBuildNameCommand="s!${oldString}!${newString}!g"
# quotes are critical here, since strings might contain spaces!

Back to the top