summaryrefslogtreecommitdiffstats
path: root/scripts/compose_functions
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-07-16 17:26:21 -0400
committerEndi S. Dewata <edewata@redhat.com>2013-07-22 09:47:52 -0400
commit4d49d7e1845c372164b7bcc2fe759867cfcab0f2 (patch)
tree7b8289ebbc55321d9a852ef68abe191018ece9dc /scripts/compose_functions
parent7e1a8b7f65170b154e917b6a65d20befc6bf7832 (diff)
downloadpki-4d49d7e1845c372164b7bcc2fe759867cfcab0f2.tar.gz
pki-4d49d7e1845c372164b7bcc2fe759867cfcab0f2.tar.xz
pki-4d49d7e1845c372164b7bcc2fe759867cfcab0f2.zip
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.
Diffstat (limited to 'scripts/compose_functions')
-rw-r--r--scripts/compose_functions3
1 files changed, 2 insertions, 1 deletions
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