From dcae1c18770ad67492c14b05a8cbc5bde71cf164 Mon Sep 17 00:00:00 2001 From: Steven Chan Date: Thu, 28 Nov 2013 15:17:04 -0800 Subject: [PATCH] Add more patch points to patching tool The new patch points will allow more deployed software to be patched. The issue is that these patch points are located in paths different from their resident paths in the software repository. --- patching/patch-eg.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/patching/patch-eg.sh b/patching/patch-eg.sh index d236888..ca53ab2 100755 --- a/patching/patch-eg.sh +++ b/patching/patch-eg.sh @@ -14,7 +14,7 @@ OPTIONS: -p SHA1 ID of patch to apply (mandatory) -b Backup label of patch Defaults to patch ID - -P Patch rule (web, xul, perl) to determine patch directory, user, and strip level + -P Patch rule (web, tt2, xul, bin, perl, util) to determine patch directory, user, and strip level Defaults to 'web' -y Yes, apply the patch instead of doing a dry run -R Reverse or undo the patch instead of applying it @@ -54,9 +54,12 @@ Echo_Intention() { # If patch rule is 'perl', the patch path will be dynamically determined from the host declare -A Rule case $Patch_Rule in - (web) Rule=( [path]=/srv/openils/var [level]=2 [sudo]=opensrf );; - (xul) Rule=( [path]=/srv/openils/var/web/xul [level]=4 [sudo]=opensrf );; - (perl) Rule=( [path]=/usr/local/share/perl/5.14.2 [level]=5 [sudo]=root );; + (web) Rule=( [path]=/srv/openils/var [level]=2 [sudo]=opensrf );; + (tt2) Rule=( [path]=/srv/openils/var [level]=3 [sudo]=opensrf );; + (xul) Rule=( [path]=/srv/openils/var/web/xul [level]=4 [sudo]=opensrf );; + (bin) Rule=( [path]=/srv/openils/bin [level]=4 [sudo]=opensrf );; + (perl) Rule=( [path]=/usr/local/share/perl/5.14.2 [level]=5 [sudo]=root );; + (util) Rule=( [path]=/srv/openils/var/web/xul/server [level]=6 [sudo]=opensrf );; esac -- 2.3.6