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_dogtag_pki_theme_packages | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/compose_dogtag_pki_theme_packages') diff --git a/scripts/compose_dogtag_pki_theme_packages b/scripts/compose_dogtag_pki_theme_packages index d2e74d17c..f340dbf9c 100755 --- a/scripts/compose_dogtag_pki_theme_packages +++ b/scripts/compose_dogtag_pki_theme_packages @@ -46,7 +46,12 @@ PKI_COMPONENT_LIST="test common-ui ra-ui tps-ui console-ui" ## Establish the TARGET files/directories of the 'dogtag-pki' source/spec files ## -PKI_PACKAGES="${PKI_PWD}/packages" +if [ $WORK_DIR ]; then + PKI_PACKAGES="$WORK_DIR" +else + PKI_PACKAGES="${PKI_PWD}/packages" +fi + DOGTAG_PKI_THEME_BUILD_DIR="${PKI_PACKAGES}/BUILD" DOGTAG_PKI_THEME_RPMS_DIR="${PKI_PACKAGES}/RPMS" DOGTAG_PKI_THEME_SOURCES_DIR="${PKI_PACKAGES}/SOURCES" -- cgit