Changeset 35238 for trunk/dvodist/src
- Timestamp:
- Mar 5, 2013, 2:34:10 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/dvodist/src/generate (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dvodist/src/generate
r34748 r35238 6 6 set htdocs = "" 7 7 set rootdir = "" 8 set rootwww = "" 8 9 set args = "" 9 10 set VERBOSE = 0 … … 25 26 else 26 27 set rootdir = `echo $1 | tr = ' ' | awk '{print $2}'` 28 endif 29 breaksw; 30 case --rootwww* 31 if ("$1" == "--rootwww") then 32 shift 33 set rootwww = $1 34 else 35 set rootwww = `echo $1 | tr = ' ' | awk '{print $2}'` 27 36 endif 28 37 breaksw; … … 47 56 echo "htdocs : $htdocs" 48 57 echo "rootdir: $rootdir" 58 echo "rootwww: $rootwww" 49 59 echo "input : $args[1]" 50 60 echo "output : $args[2]" … … 53 63 if ("$htdocs" == "") goto usage 54 64 if ("$rootdir" == "") goto usage 65 if ("$rootwww" == "") goto usage 55 66 56 cat $args[1] | sed "s|@HTDOCS@|$htdocs|" | sed "s|@ROOTDIR@|$rootdir|" > $args[2]67 cat $args[1] | sed "s|@HTDOCS@|$htdocs|" | sed "s|@ROOTDIR@|$rootdir|" | sed "s|@ROOTWWW@|$rootwww|" > $args[2] 57 68 exit 0 58 69
Note:
See TracChangeset
for help on using the changeset viewer.
