Changeset 34609 for branches/eam_branches/ipp-20120905/dvodist/src
- Timestamp:
- Oct 25, 2012, 2:15:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/dvodist/src/generate
r34546 r34609 5 5 6 6 set htdocs = "" 7 set rootdir = "" 7 8 set args = "" 8 9 set VERBOSE = 0 … … 16 17 else 17 18 set htdocs = `echo $1 | tr = ' ' | awk '{print $2}'` 19 endif 20 breaksw; 21 case --rootdir* 22 if ("$1" == "--rootdir") then 23 shift 24 set rootdir = $1 25 else 26 set rootdir = `echo $1 | tr = ' ' | awk '{print $2}'` 18 27 endif 19 28 breaksw; … … 36 45 if ($VERBOSE) then 37 46 echo 38 echo "htdocs: $htdocs" 39 echo "input : $args[1]" 40 echo "output: $args[2]" 47 echo "htdocs : $htdocs" 48 echo "rootdir: $rootdir" 49 echo "input : $args[1]" 50 echo "output : $args[2]" 41 51 endif 42 52 43 53 if ("$htdocs" == "") goto usage 54 if ("$rootdir" == "") goto usage 44 55 45 cat $args[1] | sed "s|@HTDOCS@|$htdocs|" > $args[2]56 cat $args[1] | sed "s|@HTDOCS@|$htdocs|" | sed "s|@ROOTDIR@|$rootdir|" > $args[2] 46 57 exit 0 47 58 … … 59 70 replace install-time options in scripts 60 71 61 set the WWW installation directory root with --htdocs 62 72 set the WWW installation directory root with --htdocs (top on server) 73 set the WWW top-level directory with --rootdir (top seen by client) 74 63 75 switches: 64 76 -h, --help display this help and exit 65 --htdocs (required) set the top-level directory 77 --htdocs (required) set the top-level directory (internal) 78 --rootdir (required) set the top-level directory (external) 66 79 67 80 EOF
Note:
See TracChangeset
for help on using the changeset viewer.
