diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-12-03 02:05:13 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-12-03 02:05:13 +0000 |
commit | 0135e8a1f5748a87ab1d14cf3bc7c78cebf98aa4 (patch) | |
tree | 026043c2dc4c984541f884d19664199bf9d375a6 /localezmangle | |
parent | 4e9a1c0a2ee5e2fc2af5ef974b7bc089dc961b5a (diff) |
localezmangle: Append mangle. to default sedfile and diff. Add lang example.
Diffstat (limited to 'localezmangle')
-rwxr-xr-x | localezmangle | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/localezmangle b/localezmangle index 1164b69..34e7470 100755 --- a/localezmangle +++ b/localezmangle @@ -3,7 +3,7 @@ # /usr/local/bin/localezmangle # Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk> # -# $Id: localezmangle,v 1.5 2002-12-03 01:43:12 jonas Exp $ +# $Id: localezmangle,v 1.6 2002-12-03 02:05:13 jonas Exp $ # # Extract, rename and auto-mangle eZ Publish 2.2.x templates and languages # @@ -32,10 +32,12 @@ if [ -z "$1" -o -z "$2" -o -z "$3" ]; then echo "<targetname>." echo echo "3) All files in <targetdir> is run through the sed rulesfile <sedfile>." - echo "If <sedfile> not provided, a filename <targetname>.sed is constructed" - echo "and looked for in current dir." + echo "If <sedfile> not provided, the file mangle.<targetname>.sed is looked" + echo "for in current dir." echo - echo "Example: $prg /default/ /mytemplate/ /tmp/my_ez_tpl /var/www/ezsite" + echo "Examples:" + echo " $prg /default/ /mytemplate/ /tmp/my_ez_tpl /var/www/ezsite" + echo " $prg en_GB en_US_slang ezlang/2.2.7-en_US_slang ez/2.2.7" exit 1 fi @@ -43,7 +45,7 @@ origname=$1 targetname=$2 targetdir=$3 origdir=$4 -sedrules=`echo $targetname | sed 's/[^_[:alnum:]-]//g'`.sed +sedrules=mangle.`echo $targetname | sed 's/[^_[:alnum:]-]//g'`.sed if [ ! -f $sedrules ]; then echo "WARNING: sed rulesfile \"$sedrules\" not found. Rename only..." @@ -87,4 +89,4 @@ for file in `find $targetdir -type f`; do fi done -echo "Done. Now patch manually with the .diff (if any)..." +echo "Done. Now patch manually using mangle.$targetname.diff (if available)..." |