diff options
author | David Williams | 2016-06-12 19:27:17 +0000 |
---|---|---|
committer | David Williams | 2016-06-12 19:27:17 +0000 |
commit | 7176ddc43992ec1564cb521831a8710965dc1122 (patch) | |
tree | 5ba58d05d9fd1bfc391782ffdd7e1df5bac5e061 /production/miscToolsAndNotes | |
parent | f2b8400f04de1e0d048a06b6fad0cf85aa4e00f3 (diff) | |
download | eclipse.platform.releng.aggregator-7176ddc43992ec1564cb521831a8710965dc1122.tar.gz eclipse.platform.releng.aggregator-7176ddc43992ec1564cb521831a8710965dc1122.tar.xz eclipse.platform.releng.aggregator-7176ddc43992ec1564cb521831a8710965dc1122.zip |
[releng] making "clone utilities" more usable
Change-Id: If6476d0bd125eab4429522e1c799e60efbe81bef
Diffstat (limited to 'production/miscToolsAndNotes')
-rwxr-xr-x | production/miscToolsAndNotes/cloneUtilities/cloneUtilities.sh | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/production/miscToolsAndNotes/cloneUtilities/cloneUtilities.sh b/production/miscToolsAndNotes/cloneUtilities/cloneUtilities.sh index ef2e756c4..2e2192294 100755 --- a/production/miscToolsAndNotes/cloneUtilities/cloneUtilities.sh +++ b/production/miscToolsAndNotes/cloneUtilities/cloneUtilities.sh @@ -20,17 +20,29 @@ # This one file can be retrieved with # wget http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/plain/production/miscToolsAndNotes/cloneUtilities/cloneUtilities.sh -# and then executed +# and then chmod +x cloneUtilities.sh +# and then executed with ./cloneUtilities.sh +# It is best to remove 'cloneUtilities.sh' and wget it each +# time in case it itself changes. + + +# If running on Hudson, we access the repo directly with file:// +# protocol. If not (i.e. if WORKSPACE is not defined) then we use +# git://git.eclipse.org/ +export REPO_ACCESS="file://" +if [[ -z "${WORKSPACE}" ]] +then + echo -e "\n\t[WARNING] This script is intend to be ran in Hudson." + echo -e "\t\t But since WORKSPACE was not defined, will define it as PWD for local testing.\n\n" + export WORKSPACE=${PWD} + export REPO_ACCESS="git://git.eclipse.org/" +fi # This "localBuildProperties" file is not for production runs. # It is only for local testing, where some key locations or hosts may be # defined differently. source localBuildProperties.shsource 2>/dev/null -# put the aggregator repo in a subdirectory of WORKSPACE, utilities, in case we ever need -# a special clean-up method where some things are cleaned but not others. -# Plus, it helps emphasize we are using *this* clone of the aggregator for its utilities, not as an -# aggregation of submodules. if [[ -e ${WORKSPACE}/utilities ]] then |