summaryrefslogtreecommitdiffstats
path: root/pki/base/scripts
diff options
context:
space:
mode:
authorPKI Team <PKI Team@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2008-03-18 22:36:57 +0000
committerPKI Team <PKI Team@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2008-03-18 22:36:57 +0000
commitd0f2e4efbd3eb0f1d7f5a28e7f97c1fb4ec027bb (patch)
tree7e7473fae8af5ad7e6cda7eabbef787093fc59a7 /pki/base/scripts
parent273f8d85df5c31293a908185622b378c8f3cf7e8 (diff)
downloadpki-d0f2e4efbd3eb0f1d7f5a28e7f97c1fb4ec027bb.tar.gz
pki-d0f2e4efbd3eb0f1d7f5a28e7f97c1fb4ec027bb.tar.xz
pki-d0f2e4efbd3eb0f1d7f5a28e7f97c1fb4ec027bb.zip
Initial open source version based upon proprietary Red Hat Certificate System (RHCS) 7.3.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/scripts')
-rw-r--r--pki/base/scripts/base_svn_external_properties_db1
-rwxr-xr-xpki/base/scripts/set_base_SVN_external_properties48
2 files changed, 49 insertions, 0 deletions
diff --git a/pki/base/scripts/base_svn_external_properties_db b/pki/base/scripts/base_svn_external_properties_db
new file mode 100644
index 000000000..b8d3861ff
--- /dev/null
+++ b/pki/base/scripts/base_svn_external_properties_db
@@ -0,0 +1 @@
+config https://pki-svn.fedora.redhat.com/svn/pki/trunk/pki/base/config
diff --git a/pki/base/scripts/set_base_SVN_external_properties b/pki/base/scripts/set_base_SVN_external_properties
new file mode 100755
index 000000000..809864bfa
--- /dev/null
+++ b/pki/base/scripts/set_base_SVN_external_properties
@@ -0,0 +1,48 @@
+#!/bin/bash
+# BEGIN COPYRIGHT BLOCK
+# (C) 2008 Red Hat, Inc.
+# All rights reserved.
+# END COPYRIGHT BLOCK
+
+# Always switch into this base directory
+# prior to script execution so that all
+# of its output is written to this directory
+cd `dirname $0`
+
+# Retrieve the name of this base directory
+PKI_PWD=`pwd`
+
+# Name and location of the SVN external properties DB.
+SVN_EXTERNAL_PROPERTIES_DB_LOCATION="${PKI_PWD}"
+SVN_EXTERNAL_PROPERTIES_DB_NAME="base_svn_external_properties_db"
+SVN_EXTERNAL_PROPERTIES_DB="${SVN_EXTERNAL_PROPERTIES_DB_LOCATION}/${SVN_EXTERNAL_PROPERTIES_DB_NAME}"
+
+# Always make sure that the SVN external properties DB exists.
+if [ ! -f ${SVN_EXTERNAL_PROPERTIES_DB} ]; then
+ printf "The SVN external properties DB called '${SVN_EXTERNAL_PROPERTIES_DB}' does NOT exist!\n"
+ exit 255;
+fi
+
+# Specify the location and a list of the SVN components that
+# require these SVN external properties to be updated.
+SVN_COMPONENTS_LOCATION="${PKI_PWD}/.."
+SVN_COMPONENTS="ca common console java-tools kra manage migrate native-tools ocsp osutil ra setup silent symkey tks tps util"
+
+# Change directory to the location of all of these components,
+# and execute the defined SVN external property changes.
+cd ${SVN_COMPONENTS_LOCATION}
+for SVN_COMPONENT in ${SVN_COMPONENTS} ; do
+ if [ -d "${SVN_COMPONENTS_LOCATION}/${SVN_COMPONENT}" ]; then
+ printf "Setting external SVN properties for the component called '${SVN_COMPONENT}' . . .\n"
+ cd "${SVN_COMPONENT}"
+ svn propset svn:externals -F "${SVN_EXTERNAL_PROPERTIES_DB}" .
+ svn propget svn:externals .
+ svn update
+ cd ..
+ else
+ printf "The component called '${SVN_COMPONENTS_LOCATION}/${SVN_COMPONENT}' does NOT exist!\n"
+ fi
+done
+
+exit 0;
+