summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalezmangle14
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)..."