summaryrefslogtreecommitdiff
path: root/localezmangle
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-12-03 01:11:25 +0000
committerJonas Smedegaard <dr@jones.dk>2002-12-03 01:11:25 +0000
commitaad98a932e72b69d751561c9ea6c25b96ada1ebd (patch)
treea30ff5acbb72c96a58a420cd317b42f33c83c6f3 /localezmangle
parent45f401eb8f36bf9b57b2a6ca0b2b8bd74e996b45 (diff)
localezmangle: Improved documentation.
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