IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14425


Ignore:
Timestamp:
Aug 7, 2007, 4:30:00 PM (19 years ago)
Author:
eugene
Message:

adding cpath, library_path, man

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psconfig.csh

    r14349 r14425  
    66set show_libs = 0
    77set show_bin = 0
     8set show_man = 0
    89set show_arch = 0
    910set show_path = 0
     11set show_cpath = 0
    1012set show_include = 0
    1113set show_configure = 0
     
    1618set show_psversion = 0
    1719set show_psconfdir = 0
     20set show_library_path = 0
    1821set show_ld_library_path = 0
    1922set show_pkg_config_path = 0
     
    3740      set show_bin = 1
    3841      breaksw
     42    case --man
     43      set show_man = 1
     44      breaksw
    3945    case --include
    4046      set show_include = 1
     
    6470      set show_ld_library_path = 1
    6571      breaksw;
     72    case --library_path
     73      set show_library_path = 1
     74      breaksw;
    6675    case --pkg_config_path
    6776      set show_pkg_config_path = 1
     
    7281    case --path
    7382      set show_path = 1
     83      breaksw;
     84    case --cpath
     85      set show_cpath = 1
    7486      breaksw;
    7587    case --aclocal_flags
     
    104116
    105117if ($?CPATH == 0) setenv CPATH
     118if ($?LIBRARY_PATH == 0) setenv LIBRARY_PATH
    106119if ($?LD_LIBRARY_PATH == 0) setenv LD_LIBRARY_PATH
    107120if ($?PKG_CONFIG_PATH == 0) setenv PKG_CONFIG_PATH
     
    191204endif
    192205
    193 set mandir  = {$PSCONFDIR}/man
     206set mandir  = {$PSCONFDIR}/{$PSCONFIG}/man
    194207set newpath = ""
    195208set pathlist = `echo $MANPATH | tr ':' '\n'`
     
    344357# list selected environment variables
    345358if ($show_prefix) then
    346   echo $PSCONFDIR/$PSVERSION.$ARCH
     359  echo $PSCONFDIR/$PSCONFIG
    347360  exit 0
    348361endif
    349362if ($show_libs) then
    350   echo $PSCONFDIR/$PSVERSION.$ARCH/lib
     363  echo $libdir
    351364  exit 0
    352365endif
    353366if ($show_bin) then
    354   echo $PSCONFDIR/$PSVERSION.$ARCH/bin
     367  echo $bindir
     368  exit 0
     369endif
     370if ($show_man) then
     371  echo $mandir
    355372  exit 0
    356373endif
    357374if ($show_include) then
    358   echo $PSCONFDIR/$PSVERSION.$ARCH/include
     375  echo $incdir
    359376  exit 0
    360377endif
     
    403420endif
    404421
     422if ($show_library_path) then
     423  echo $LIBRARY_PATH
     424  exit 0
     425endif
     426
    405427if ($show_pkg_config_path) then
    406428  echo $PKG_CONFIG_PATH
     
    415437if ($show_path) then
    416438  echo $PATH
     439  exit 0
     440endif
     441
     442if ($show_cpath) then
     443  echo $CPATH
    417444  exit 0
    418445endif
     
    450477  echo "       psconfig --psversion"
    451478  echo "       psconfig --psconfdir"
     479  echo "       psconfig --library_path"
    452480  echo "       psconfig --ld_library_path"
    453481  echo "       psconfig --pkg_config_path"
    454482  echo "       psconfig --arch"
    455483  echo "       psconfig --path"
     484  echo "       psconfig --cpath"
    456485  echo "       psconfig --aclocal_flags"
    457486  echo
Note: See TracChangeset for help on using the changeset viewer.