summaryrefslogtreecommitdiff
path: root/localezmangle
diff options
context:
space:
mode:
Diffstat (limited to 'localezmangle')
-rwxr-xr-xlocalezmangle26
1 files changed, 16 insertions, 10 deletions
diff --git a/localezmangle b/localezmangle
index 2be131f..88147a9 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.2 2002-12-03 00:54:05 jonas Exp $
+# $Id: localezmangle,v 1.3 2002-12-03 01:11:25 jonas Exp $
#
# Extract, rename and auto-mangle eZ Publish 2.2.x templates and languages
#
@@ -18,16 +18,22 @@ if [ -z "$1" -o -z "$2" -o -z "$3" ]; then
echo
echo "Usage: $prg origname targetname targetdir [origdir [sedfile]]"
echo
- echo " origname: String to search for in path + filename."
- echo " targetname: Replacement string."
- echo " targetdir: Where to store mangled file hierarchy."
- echo " origdir: Where to look for files matching <origname>."
+ echo "Options:"
+ echo " origname: Search string"
+ echo " targetname: Replacement string"
+ echo " targetdir: Where to store mangled file hierarchy"
+ echo " origdir: Where to look for original files"
echo
- echo "If <origname> is provided, it is considered a \"first run\":"
- echo " <targetdir> is created, and files matching <origname> are copied"
- echo " and renamed."
- echo "If <sedfile> not provided, the file <targetname>.sed in current dir"
- echo " is attempted."
+ echo "1) <targetdir> is created if it doesn't exist. If <origname> is"
+ echo "provided it is considered a \"first run\", and files matching"
+ echo "<origname> are copied from <origdir> to <targetdir>."
+ echo
+ echo "2) Path + filename is matched against <origname> and replaced with"
+ 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
echo "Example: $prg /default/ /mytemplate/ /tmp/my_ez_tpl /var/www/ezsite"
exit 1