Changeset 34609
- Timestamp:
- Oct 25, 2012, 2:15:33 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120905/dvodist
- Files:
-
- 13 edited
-
INSTALL (modified) (1 diff)
-
Makefile.in (modified) (3 diffs)
-
configure.tcsh (modified) (5 diffs)
-
dvodist/docs.mkd (modified) (1 diff)
-
dvodist/help.mkd (modified) (1 diff)
-
dvodist/test.mkd (modified) (1 diff)
-
ippdata/docs.mkd (modified) (1 diff)
-
ippdata/help.mkd (modified) (1 diff)
-
ippdata/test.mkd (modified) (1 diff)
-
src/generate (modified) (4 diffs)
-
www-util/dvodist.page.mkd (modified) (1 diff)
-
www-util/ipp.php (modified) (7 diffs)
-
www-util/ippdata.page.mkd (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/dvodist/INSTALL
r34548 r34609 5 5 psconfigure --htdocs /data/ippc17.0/www/dvodist 6 6 make php 7 8 pikake test examples: 9 psconfigure --htdocs /var/www/ --rootdir /ippdata 10 make ippdata 11 12 psconfigure --htdocs /var/www/ --rootdir /dvodist 13 make dvodist -
branches/eam_branches/ipp-20120905/dvodist/Makefile.in
r34561 r34609 73 73 @if [ ! -d $(TGT-UTIL) ]; then mkdir -p $(TGT-UTIL) || exit; fi 74 74 rm -f $(TGT-UTIL)/$*.php || exit 75 $(GENERATE) --htdocs @HTDOCS@ $(SRC-UTIL)/$*.mkd $(TGT-UTIL)/$*.php || exit75 $(GENERATE) --htdocs @HTDOCS@ --rootdir @ROOTDIR@ $(SRC-UTIL)/$*.mkd $(TGT-UTIL)/$*.php || exit 76 76 77 77 $(TGT-UTIL)/%: $(SRC-UTIL)/% … … 84 84 @if [ ! -d $(TGT-DVODIST) ]; then mkdir -p $(TGT-DVODIST) || exit; fi 85 85 rm -f $(TGT-DVODIST)/$*.php || exit 86 $(GENERATE) --htdocs @HTDOCS@ $(SRC-DVODIST)/$*.mkd $(TGT-DVODIST)/$*.php || exit86 $(GENERATE) --htdocs @HTDOCS@ --rootdir @ROOTDIR@ $(SRC-DVODIST)/$*.mkd $(TGT-DVODIST)/$*.php || exit 87 87 88 88 # non-generated php code is copied directly … … 96 96 @if [ ! -d $(TGT-IPPDATA) ]; then mkdir -p $(TGT-IPPDATA) || exit; fi 97 97 rm -f $(TGT-IPPDATA)/$*.php || exit 98 $(GENERATE) --htdocs @HTDOCS@ $(SRC-IPPDATA)/$*.mkd $(TGT-IPPDATA)/$*.php || exit98 $(GENERATE) --htdocs @HTDOCS@ --rootdir @ROOTDIR@ $(SRC-IPPDATA)/$*.mkd $(TGT-IPPDATA)/$*.php || exit 99 99 100 100 # non-generated php code is copied directly -
branches/eam_branches/ipp-20120905/dvodist/configure.tcsh
r34543 r34609 10 10 11 11 set htdocs = "" 12 set rootdir = "" 12 13 set dbhost = "" 13 14 set dbuser = "" … … 52 53 endif 53 54 breaksw; 55 case --rootdir* 56 if ("$1" == "--rootdir") then 57 shift 58 set rootdir = $1 59 else 60 set rootdir = `echo $1 | tr = ' ' | awk '{print $2}'` 61 endif 62 breaksw; 54 63 case --dbhost* 55 64 if ("$1" == "--dbhost") then … … 137 146 138 147 echo 139 echo "prefix: $prefix" 140 echo "bindir: $bindir" 141 echo "libdir: $libdir" 142 echo "datadir:$datadir" 143 echo "site: $site" 144 echo "htdocs: $htdocs" 145 echo "dbhost: $dbhost" 146 echo "dbuser: $dbuser" 147 echo "dbpass: $dbpass" 148 echo "DBI: $DBI" 148 echo "prefix: $prefix" 149 # echo "bindir: $bindir" 150 # echo "libdir: $libdir" 151 # echo "datadir: $datadir" 152 # echo "site: $site" 153 echo "htdocs: $htdocs" 154 echo "rootdir: $rootdir" 155 # echo "dbhost: $dbhost" 156 # echo "dbuser: $dbuser" 157 # echo "dbpass: $dbpass" 158 # echo "DBI: $DBI" 149 159 echo 150 160 151 161 if ("$htdocs" == "") goto usage 162 if ("$rootdir" == "") goto usage 152 163 153 164 # unless we need a db interface, skip this … … 185 196 if (-e Makefile) mv -f Makefile Makefile~ 186 197 cat Makefile.in | sed "s|@HTDOCS@|$htdocs|" > tmp.1 187 cat tmp.1 | sed "s|@BINDIR@|$bindir|" > Makefile 188 rm -f tmp.1 198 cat tmp.1 | sed "s|@ROOTDIR@|$rootdir|" > tmp.2 199 cat tmp.2 | sed "s|@BINDIR@|$bindir|" > Makefile 200 rm -f tmp.1 tmp.2 189 201 190 202 ## # convert raw/site.php.in to raw/site.php … … 213 225 USAGE: configure [OPTION] 214 226 215 set the WWW installation directory root with --htdocs 227 set the internal WWW installation directory root with --htdocs 228 set the external WWW installation directory root with --rootdir 216 229 set the IPP installation directory root with --prefix 217 230 218 set the database host, user, password with: --dbhost, --dbuser, -dbpass219 220 231 either --prefix or both --bindir and --libdir and [--datadir or --site] are required 221 232 -
branches/eam_branches/ipp-20120905/dvodist/dvodist/docs.mkd
r34553 r34609 1 <?php include "@HTDOCS@/www-util/ ipp.page.php"; ?>1 <?php include "@HTDOCS@/www-util/dvodist.page.php"; ?> 2 2 3 3 # DVO Documentation -
branches/eam_branches/ipp-20120905/dvodist/dvodist/help.mkd
r34553 r34609 1 <?php include "@HTDOCS@/www-util/ ipp.page.php"; ?>1 <?php include "@HTDOCS@/www-util/dvodist.page.php"; ?> 2 2 3 3 # DVO Distribution Help -
branches/eam_branches/ipp-20120905/dvodist/dvodist/test.mkd
r34553 r34609 1 <?php include "@HTDOCS@/www-util/ ipp.page.php"; ?>1 <?php include "@HTDOCS@/www-util/dvodist.page.php"; ?> 2 2 3 3 # DVO Distribution Help -
branches/eam_branches/ipp-20120905/dvodist/ippdata/docs.mkd
r34574 r34609 1 <?php include "@HTDOCS@/www-util/ipp .page.php"; ?>1 <?php include "@HTDOCS@/www-util/ippdata.page.php"; ?> 2 2 3 3 # DVO Documentation -
branches/eam_branches/ipp-20120905/dvodist/ippdata/help.mkd
r34574 r34609 1 <?php include "@HTDOCS@/www-util/ipp .page.php"; ?>1 <?php include "@HTDOCS@/www-util/ippdata.page.php"; ?> 2 2 3 3 # DVO Distribution Help -
branches/eam_branches/ipp-20120905/dvodist/ippdata/test.mkd
r34574 r34609 1 <?php include "@HTDOCS@/www-util/ipp .page.php"; ?>1 <?php include "@HTDOCS@/www-util/ippdata.page.php"; ?> 2 2 3 3 # DVO Distribution Help -
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 -
branches/eam_branches/ipp-20120905/dvodist/www-util/dvodist.page.mkd
r34574 r34609 14 14 $rootdir = ""; 15 15 } else { 16 $rootdir = " /dvodist/dvodist";16 $rootdir = "@ROOTDIR@"; 17 17 } 18 18 -
branches/eam_branches/ipp-20120905/dvodist/www-util/ipp.php
r34551 r34609 1 1 <?php 2 2 3 global $realroot; 4 $realroot = "/dvodist"; 3 global $rootdir; 5 4 6 5 function head ($title) { … … 77 76 } 78 77 79 global $r ealroot;78 global $rootdir; 80 79 81 80 // hi-lite the current page (use select-style, not style) 82 81 $thisname = $_SERVER[SCRIPT_NAME]; 83 $page = $r ealroot. $base;82 $page = $rootdir . $base; 84 83 if ($page == $thisname) { 85 84 $style = trim($line[1]); … … 121 120 122 121 function dirlist ($source) { 122 if (!file_exists($source)) return; 123 123 124 $file = fopen ($source, "r"); 124 125 echo "<table class=\"dirlist\">\n"; … … 139 140 // } 140 141 141 if (count($line) != 4) continue; 142 143 $name = trim($line[0]); 144 $type = trim($line[1]); 145 $style = trim($line[2]); 146 $info = trim($line[3]); 142 if ((count($line) != 4) && (count($line) != 5)) continue; 143 144 // support both the old and new style tables: 145 // old: name | type | style | info 146 // new: name | link | type | style | info 147 148 if (count($line) == 4) { 149 echo "count = 4<br>\n"; 150 $name = trim($line[0]); 151 $type = trim($line[1]); 152 $style = trim($line[2]); 153 $info = trim($line[3]); 154 $link = $name; 155 } 156 if (count($line) == 5) { 157 echo "count = 5<br>\n"; 158 $name = trim($line[0]); 159 $link = trim($line[1]); 160 $type = trim($line[2]); 161 $style = trim($line[3]); 162 $info = trim($line[4]); 163 } 147 164 148 165 switch ($type) { … … 172 189 if (ereg ('^[:blank:]*#', $line[0])) continue; 173 190 if (count($line) < 2) continue; 174 if (count($line) != 4) continue; 175 176 $name = trim($line[0]); 177 $type = trim($line[1]); 178 $style = trim($line[2]); 179 $info = trim($line[3]); 191 192 if ((count($line) != 4) && (count($line) != 5)) continue; 193 194 // support both the old and new style tables: 195 // old: name | type | style | info 196 // new: name | link | type | style | info 197 198 if (count($line) == 4) { 199 $name = trim($line[0]); 200 $type = trim($line[1]); 201 $style = trim($line[2]); 202 $info = trim($line[3]); 203 $link = $name; 204 } 205 if (count($line) == 5) { 206 $name = trim($line[0]); 207 $link = trim($line[1]); 208 $type = trim($line[2]); 209 $style = trim($line[3]); 210 $info = trim($line[4]); 211 } 180 212 181 213 switch ($type) { … … 195 227 196 228 function verbatim ($source) { 229 if (!file_exists($source)) return; 230 197 231 $file = fopen ($source, "r"); 198 232 … … 218 252 // lines which start with @ are processed by 'dirlist', all others are processed by Markdown 219 253 function do_markdown ($source) { 254 if (!file_exists($source)) return; 255 220 256 $file = fopen ($source, "r"); 221 257 -
branches/eam_branches/ipp-20120905/dvodist/www-util/ippdata.page.mkd
r34574 r34609 14 14 $rootdir = ""; 15 15 } else { 16 $rootdir = " /dvodist/ippdata";16 $rootdir = "@ROOTDIR@"; 17 17 } 18 18
Note:
See TracChangeset
for help on using the changeset viewer.
