IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 25, 2012, 2:15:33 PM (14 years ago)
Author:
eugene
Message:

finish split out of dvodist and ippdata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120905/dvodist/src/generate

    r34546 r34609  
    55
    66set htdocs  = ""
     7set rootdir  = ""
    78set args    = ""
    89set VERBOSE = 0
     
    1617   else
    1718     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}'`
    1827   endif
    1928   breaksw;
     
    3645if ($VERBOSE) then
    3746  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]"
    4151endif
    4252
    4353if ("$htdocs" == "") goto usage
     54if ("$rootdir" == "") goto usage
    4455
    45 cat $args[1] | sed "s|@HTDOCS@|$htdocs|" > $args[2]
     56cat $args[1] | sed "s|@HTDOCS@|$htdocs|" | sed "s|@ROOTDIR@|$rootdir|" > $args[2]
    4657exit 0
    4758
     
    5970  replace install-time options in scripts
    6071 
    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   
    6375  switches:
    6476    -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)
    6679
    6780EOF
Note: See TracChangeset for help on using the changeset viewer.