From 4d49d7e1845c372164b7bcc2fe759867cfcab0f2 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 16 Jul 2013 17:26:21 -0400 Subject: Added option to override compose work directory. Currently the compose scripts always use a fixed work directory called "packages" to do the build. To provide more flexibility, a new optional parameter has been added to allow overriding the work directory. --- scripts/compose_functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/compose_functions') diff --git a/scripts/compose_functions b/scripts/compose_functions index a6a8ed5b6..7fbb941d6 100644 --- a/scripts/compose_functions +++ b/scripts/compose_functions @@ -241,7 +241,7 @@ Fetch_Source_Tarball() ## Check for command line argument validity ## -GETOPT=`getopt -o '' -l without-javadoc -n "$0" -- "$@"` +GETOPT=`getopt -o '' -l without-javadoc,work-dir: -n "$0" -- "$@"` if [ $? != 0 ] ; then Usage @@ -253,6 +253,7 @@ eval set -- "$GETOPT" while true ; do case "$1" in --without-javadoc) JAVADOC="--without javadoc" ; shift ;; + --work-dir) WORK_DIR="$2" ; shift 2 ;; --) shift ; break ;; *) echo "$0: unrecognized option '$1'" 1>&2 ; exit 255 ;; esac -- cgit