summaryrefslogtreecommitdiffstats
path: root/pki/scripts/compose_pki_ra_packages
diff options
context:
space:
mode:
authormharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-03-01 01:27:13 +0000
committermharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-03-01 01:27:13 +0000
commit23d17444dd634f4d647dceb067e11230fda60540 (patch)
tree869b9b15835407d22cfbcb0f75b9ee366ddfb31a /pki/scripts/compose_pki_ra_packages
parent4be7b0868e23c62f20813c3ce1c4f43ade997896 (diff)
downloadpki-23d17444dd634f4d647dceb067e11230fda60540.tar.gz
pki-23d17444dd634f4d647dceb067e11230fda60540.tar.xz
pki-23d17444dd634f4d647dceb067e11230fda60540.zip
Revised compose scripts to allow them to use 'patches'.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1871 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/scripts/compose_pki_ra_packages')
-rwxr-xr-xpki/scripts/compose_pki_ra_packages175
1 files changed, 87 insertions, 88 deletions
diff --git a/pki/scripts/compose_pki_ra_packages b/pki/scripts/compose_pki_ra_packages
index 08576478f..7d34a032b 100755
--- a/pki/scripts/compose_pki_ra_packages
+++ b/pki/scripts/compose_pki_ra_packages
@@ -38,12 +38,7 @@ PKI_RA_VERSION="9.0.0"
## Establish the SOURCE files/directories of the 'pki-ra' source directory
##
-PKI_DIR="pki"
-PKI_BASE_DIR="${PKI_DIR}/base"
PKI_SPECS_FILE="${PKI_DIR}/specs/${PKI_RA}.spec"
-PKI_FILE_LIST="CMakeLists.txt COPYING CPackConfig.cmake ConfigureChecks.cmake DefineOptions.cmake README cmake_uninstall.cmake.in config.h.cmake"
-PKI_CMAKE_DIR="cmake"
-PKI_BASE_MANIFEST="CMakeLists.txt"
PKI_COMPONENT_LIST="ra"
@@ -105,89 +100,93 @@ rm -f ${PKI_RA_SRPMS_DIR}/${PKI_RA}-${PKI_RA_VERSION}*.rpm
cp -p ${PKI_SPECS_FILE} ${PKI_RA_SPECS_DIR}
-##
-## Always start with a new 'pki-ra' staging directory
-##
-
-rm -rf ${PKI_RA_STAGING_DIR}
-
-
-##
-## To generate the 'pki-ra' tarball, construct a staging area
-## consisting of the 'pki-ra' source components from the
-## current contents of the PKI working repository
-##
-
-mkdir -p ${PKI_RA_DIR}
-cd ${PKI_DIR}
-for file in "${PKI_FILE_LIST}" ;
-do
- cp -p ${file} ${PKI_RA_DIR}
-done
-find ${PKI_CMAKE_DIR} \
- -name .svn -prune -o \
- -name *.swp -prune -o \
- -print | cpio -pdum ${PKI_RA_DIR} > /dev/null 2>&1
-cd - > /dev/null 2>&1
-
-mkdir -p ${PKI_RA_BASE_DIR}
-cd ${PKI_BASE_DIR}
-cp -p ${PKI_BASE_MANIFEST} ${PKI_RA_BASE_DIR}
-for component in "${PKI_COMPONENT_LIST}" ;
-do
- find ${component} \
- -name .svn -prune -o \
- -name *.swp -prune -o \
- -name Makefile.am -prune -o \
- -name Makefile.in -prune -o \
- -name aclocal.m4 -prune -o \
- -name autogen.sh -prune -o \
- -name build.xml -prune -o \
- -name compile -prune -o \
- -name config.guess -prune -o \
- -name config.h.in -prune -o \
- -name config.sub -prune -o \
- -name configure -prune -o \
- -name configure.ac -prune -o \
- -name depcomp -prune -o \
- -name install-sh -prune -o \
- -name ltmain.sh -prune -o \
- -name m4 -prune -o \
- -name missing -prune -o \
- -name setup_package -prune -o \
- -print | cpio -pdum ${PKI_RA_BASE_DIR} > /dev/null 2>&1
-done
-cd - > /dev/null 2>&1
-
-
-##
-## Due to the following lower-level 'config' subdirectories,
-## INDEPENDENTLY remove ALL top-level 'config' directories:
-##
-## * ./console/src/com/netscape/admin/certsrv/config (N/A 'pki-ra')
-## * ./tps/forms/tps/admin/console/config (N/A 'pki-ra')
-##
-
-rm -rf ${PKI_RA_BASE_DIR}/*/config
-
-
-##
-## Create the 'pki-ra' tarball
-##
-
-mkdir -p ${PKI_RA_SOURCES_DIR}
-cd ${PKI_RA_STAGING_DIR}
-gtar -zcvf ${PKI_RA_TARBALL} \
- "${PKI_RA}-${PKI_RA_VERSION}" > /dev/null 2>&1
-mv ${PKI_RA_TARBALL} ${PKI_RA_SOURCES_DIR}
-cd - > /dev/null 2>&1
-
-
-##
-## Always remove the PKI staging area
-##
-
-rm -rf ${PKI_RA_STAGING_DIR}
+if [ ${USE_PATCH_FILES} -eq 1 ] ; then
+ Retrieve_Source_Tarball_and_Patches ${PKI_SPECS_FILE} ${PKI_PATCHES_DIR} ${PKI_RA_SOURCES_DIR}
+else
+ ##
+ ## Always start with a new 'pki-ra' staging directory
+ ##
+
+ rm -rf ${PKI_RA_STAGING_DIR}
+
+
+ ##
+ ## To generate the 'pki-ra' tarball, construct a staging area
+ ## consisting of the 'pki-ra' source components from the
+ ## current contents of the PKI working repository
+ ##
+
+ mkdir -p ${PKI_RA_DIR}
+ cd ${PKI_DIR}
+ for file in "${PKI_FILE_LIST}" ;
+ do
+ cp -p ${file} ${PKI_RA_DIR}
+ done
+ find ${PKI_CMAKE_DIR} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -print | cpio -pdum ${PKI_RA_DIR} > /dev/null 2>&1
+ cd - > /dev/null 2>&1
+
+ mkdir -p ${PKI_RA_BASE_DIR}
+ cd ${PKI_BASE_DIR}
+ cp -p ${PKI_BASE_MANIFEST} ${PKI_RA_BASE_DIR}
+ for component in "${PKI_COMPONENT_LIST}" ;
+ do
+ find ${component} \
+ -name .svn -prune -o \
+ -name *.swp -prune -o \
+ -name Makefile.am -prune -o \
+ -name Makefile.in -prune -o \
+ -name aclocal.m4 -prune -o \
+ -name autogen.sh -prune -o \
+ -name build.xml -prune -o \
+ -name compile -prune -o \
+ -name config.guess -prune -o \
+ -name config.h.in -prune -o \
+ -name config.sub -prune -o \
+ -name configure -prune -o \
+ -name configure.ac -prune -o \
+ -name depcomp -prune -o \
+ -name install-sh -prune -o \
+ -name ltmain.sh -prune -o \
+ -name m4 -prune -o \
+ -name missing -prune -o \
+ -name setup_package -prune -o \
+ -print | cpio -pdum ${PKI_RA_BASE_DIR} > /dev/null 2>&1
+ done
+ cd - > /dev/null 2>&1
+
+
+ ##
+ ## Due to the following lower-level 'config' subdirectories,
+ ## INDEPENDENTLY remove ALL top-level 'config' directories:
+ ##
+ ## * ./console/src/com/netscape/admin/certsrv/config (N/A 'pki-ra')
+ ## * ./tps/forms/tps/admin/console/config (N/A 'pki-ra')
+ ##
+
+ rm -rf ${PKI_RA_BASE_DIR}/*/config
+
+
+ ##
+ ## Create the 'pki-ra' tarball
+ ##
+
+ mkdir -p ${PKI_RA_SOURCES_DIR}
+ cd ${PKI_RA_STAGING_DIR}
+ gtar -zcvf ${PKI_RA_TARBALL} \
+ "${PKI_RA}-${PKI_RA_VERSION}" > /dev/null 2>&1
+ mv ${PKI_RA_TARBALL} ${PKI_RA_SOURCES_DIR}
+ cd - > /dev/null 2>&1
+
+
+ ##
+ ## Always remove the PKI staging area
+ ##
+
+ rm -rf ${PKI_RA_STAGING_DIR}
+fi
##