From 22266213bb122eee20fef2fa180c1eacefc50023 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Thu, 25 Aug 2016 14:41:14 +0200 Subject: [PATCH] Minor change to generate_sources --- generate_source_tarball.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/generate_source_tarball.sh b/generate_source_tarball.sh index 3b7bf66..3c3ea1c 100755 --- a/generate_source_tarball.sh +++ b/generate_source_tarball.sh @@ -23,6 +23,8 @@ set -e OPENJDK_URL_DEFAULT=http://hg.openjdk.java.net COMPRESSION_DEFAULT=xz +# jdk is last for its size +REPOS_DEFAULT="hotspot corba jaxws jaxp langtools nashorn jdk" if [ "x$1" = "xhelp" ] ; then echo -e "Behaviour may be specified by setting the following variables:\n" @@ -34,6 +36,7 @@ if [ "x$1" = "xhelp" ] ; then echo "FILE_NAME_ROOT - name of the archive, minus extensions (optional; defaults to PROJECT_NAME-REPO_NAME-VERSION)" echo "REPO_ROOT - the location of the Mercurial repository to archive (optional; defaults to OPENJDK_URL/PROJECT_NAME/REPO_NAME)" echo "PR2126 - the path to the PR2126 patch to apply (optional; downloaded if unavailable)" + echo "REPOS - specify the repositories to use (optional; defaults to ${REPOS_DEFAULT})" exit 1; fi @@ -89,10 +92,11 @@ pushd openjdk if [ "x$REPOS" = "x" ] ; then - #jdk is last for its size - repos="hotspot corba jaxws jaxp langtools nashorn jdk" + repos=${REPOS_DEFAULT} + echo "No repositories specified; defaulting to ${repos}" else - repos=$REPOS + repos=$REPOS + echo "Repositories: ${repos}" fi; for subrepo in $repos