-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
# 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