Changeset 12496 for trunk/psconfig/psconfig.sh
- Timestamp:
- Mar 19, 2007, 1:03:48 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psconfig/psconfig.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/psconfig.sh
r12150 r12496 97 97 setenv PSVERSION $args[1] 98 98 99 if ($?CPATH == 0) setenv CPATH 99 100 if ($?LD_LIBRARY_PATH == 0) setenv LD_LIBRARY_PATH 100 101 if ($?PKG_CONFIG_PATH == 0) setenv PKG_CONFIG_PATH … … 204 205 endif 205 206 207 # set CPATH, used to find include files 208 set incdir = {$PSCONFDIR}/{$PSCONFIG}/include 209 set newpath = "" 210 set pathlist = `echo $CPATH | tr ':' '\n'` 211 foreach name ($pathlist) 212 echo $name | grep $PSCONFDIR > /dev/null 213 if ($status == 0) continue 214 if ($newpath == "") then 215 set newpath = {$name}: 216 else 217 set newpath = {$newpath}{$name}: 218 endif 219 end 220 if ("$PSCONFIG" == "none") then 221 if ("$newpath" == "") then 222 unsetenv CPATH 223 else 224 setenv CPATH {$newpath} 225 endif 226 else 227 if ("$newpath" == "") then 228 setenv CPATH {$incdir}: 229 else 230 setenv CPATH {$incdir}:{$newpath} 231 endif 232 endif 233 234 # set LIBRARY_PATH and LD_LIBRARY_PATH, used to find libraries 206 235 set libdir = {$PSCONFDIR}/{$PSCONFIG}/lib 207 236 set newpath = "" … … 219 248 if ("$newpath" == "") then 220 249 unsetenv LD_LIBRARY_PATH 250 unsetenv LIBRARY_PATH 221 251 else 222 252 setenv LD_LIBRARY_PATH {$newpath} 253 setenv LIBRARY_PATH {$newpath} 223 254 endif 224 255 else 225 256 if ("$newpath" == "") then 226 257 setenv LD_LIBRARY_PATH {$libdir}: 258 setenv LIBRARY_PATH {$libdir}: 227 259 else 228 260 setenv LD_LIBRARY_PATH {$libdir}:{$newpath} 261 setenv LIBRARY_PATH {$libdir}:{$newpath} 229 262 endif 230 263 endif … … 291 324 alias psperlbuild perl Build.PL 292 325 else 293 alias psconfigure configure --prefix={$PSCONFDIR}/{$PSCONFIG} --bindir=$bindir --libdir=$libdir -- includedir={$PSCONFDIR}/{$PSCONFIG}/include --sysconfdir={$PSCONFDIR}/{$PSCONFIG}/etc --datadir={$PSCONFDIR}/share --mandir={$PSCONFDIR}/man294 alias psautogen autogen.sh --bindir=$bindir --libdir=$libdir --mandir=$mandir --includedir={$PSCONFDIR}/{$PSCONFIG}/include--sysconfdir={$PSCONFDIR}/{$PSCONFIG}/etc --datadir={$PSCONFDIR}/share326 alias psconfigure configure --prefix={$PSCONFDIR}/{$PSCONFIG} --bindir=$bindir --libdir=$libdir --mandir=$mandir --includedir=$incdir --sysconfdir={$PSCONFDIR}/{$PSCONFIG}/etc --datadir={$PSCONFDIR}/share 327 alias psautogen autogen.sh --prefix={$PSCONFDIR}/{$PSCONFIG} --bindir=$bindir --libdir=$libdir --mandir=$mandir --includedir=$incdir --sysconfdir={$PSCONFDIR}/{$PSCONFIG}/etc --datadir={$PSCONFDIR}/share 295 328 alias psperlbuild perl Build.PL --prefix {$PSCONFDIR}/{$PSCONFIG} --install_path script=$bindir --install_path arch=$bindir --install_path bin=$bindir --install_path lib=$libdir --install_path bindoc={$PSCONFDIR}/man/man1 --install_path libdoc={$PSCONFDIR}/man/man3 296 329 setenv ACLOCAL_FLAGS "-I $PSCONFDIR/share/aclocal"
Note:
See TracChangeset
for help on using the changeset viewer.
