diff options
author | Endi S. Dewata <edewata@redhat.com> | 2013-07-16 17:26:21 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2013-07-22 09:47:52 -0400 |
commit | 4d49d7e1845c372164b7bcc2fe759867cfcab0f2 (patch) | |
tree | 7b8289ebbc55321d9a852ef68abe191018ece9dc /scripts/compose_dogtag_pki_theme_packages | |
parent | 7e1a8b7f65170b154e917b6a65d20befc6bf7832 (diff) | |
download | pki-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_dogtag_pki_theme_packages')
-rwxr-xr-x | scripts/compose_dogtag_pki_theme_packages | 7 |
1 files changed, 6 insertions, 1 deletions
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" |