Changeset 24662 for trunk/ippMonitor/configure.tcsh
- Timestamp:
- Jul 3, 2009, 11:46:32 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/configure.tcsh (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/configure.tcsh
r21137 r24662 18 18 set libdir = "" 19 19 set datadir = "" 20 set site = "" 20 21 21 22 set DBI = "DB" … … 107 108 endif 108 109 breaksw; 110 case --site* 111 if ("$1" == "--site") then 112 shift 113 set site = $1 114 else 115 set site = `echo $1 | tr = ' ' | awk '{print $2}'` 116 endif 117 breaksw; 109 118 case --useMDB2 110 119 set DBI = "MDB2" … … 129 138 echo "libdir: $libdir" 130 139 echo "datadir:$datadir" 140 echo "site: $site" 131 141 echo "htdocs: $htdocs" 132 142 echo "dbhost: $dbhost" … … 157 167 if ("$prefix" == "") goto usage 158 168 set datadir = $prefix/share 169 endif 170 171 # SITE defines the location of the ipprc.config file 172 if ("$site" == "") then 173 if ("$datadir" == "") goto usage 174 set site = $datadir/ippconfig/ipprc.config 159 175 endif 160 176 … … 174 190 cat tmp.1 | sed "s|@BINDIR@|$bindir|" > tmp.2 175 191 cat tmp.2 | sed "s|@PERLLIB@|$libdir|" > tmp.1 176 cat tmp.1 | sed "s|@SITE@|$ datadir|"> tmp.2192 cat tmp.1 | sed "s|@SITE@|$site|" > tmp.2 177 193 cat tmp.2 | sed "s|@DBI@|$DBI|" > raw/site.php 178 194 rm -f tmp.1 tmp.2 … … 183 199 184 200 usage: 201 if ($#args > 1) then 202 echo unrecognized options: $args 203 endif 204 185 205 cat <<EOF 186 206 USAGE: configure [OPTION] 187 207 188 echo $#args189 echo remaining args: $args190 191 208 set the WWW installation directory root with --htdocs 192 209 set the IPP installation directory root with --prefix … … 194 211 set the database host, user, password with: --dbhost, --dbuser, -dbpass 195 212 196 either --prefix or all of --bindir, --libdir, --datadir are required 213 either --prefix or both --bindir and --libdir and [--datadir or --site] are required 214 215 if both --datadir and --site are defined, --site overrides the ipprc.config definition 197 216 198 217 Configuration: … … 206 225 --libdir=DIR object code libraries [PREFIX/lib/$ARCH] 207 226 --datadir=DIR read-only architecture-independent data [PREFIX/share] 227 --site=PATH location of the ipprc.config file [DATADIR/ippconfig/ipprc.config] 208 228 209 229 EOF
Note:
See TracChangeset
for help on using the changeset viewer.
