Changeset 16124 for trunk/psconfig
- Timestamp:
- Jan 17, 2008, 3:15:58 PM (18 years ago)
- Location:
- trunk/psconfig
- Files:
-
- 2 added
- 2 deleted
- 3 edited
-
. (modified) (1 prop)
-
.cvsignore (modified) (1 diff)
-
psbuild (modified) (2 diffs)
-
psconfig.bash (deleted)
-
psconfig.bash.in (added)
-
psconfig.csh (deleted)
-
psconfig.csh.in (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig
- Property svn:ignore
-
old new 1 1 tarballs 2 psconfig.csh 3 psconfig.bash
-
- Property svn:ignore
-
trunk/psconfig/.cvsignore
r12158 r16124 1 1 tarballs 2 psconfig.csh 3 psconfig.bash -
trunk/psconfig/psbuild
r16092 r16124 54 54 if ($ARGV[0] eq "-list") { 55 55 &list_distributions (); 56 } 57 if ($ARGV[0] eq "-bootstrap") { 58 &bootstrap (); 56 59 } 57 60 if ($ARGV[0] eq "-env") { … … 254 257 } 255 258 exit 2; 259 } 260 261 sub bootstrap { 262 263 if (@ARGV != 2) { die "USAGE: psbuild -bootstrap (install_dir)\n"; } 264 $psconfdir = $ARGV[1]; 265 266 # copy psconfig.csh and psconfig.bash to psconfdir 267 vsystem ("cat psconfig.csh.in | sed 's|\@PSCONFDIR@|$psconfdir|' > psconfig.csh"); 268 vsystem ("cat psconfig.bash.in | sed 's|\@PSCONFDIR@|$psconfdir|' > psconfig.bash"); 269 270 vsystem ("mkdir -p $psconfdir"); 271 272 vsystem ("cp psconfig.csh $psconfdir/psconfig.csh"); 273 vsystem ("cp psconfig.bash $psconfdir/psconfig.bash"); 274 print STDOUT "\n"; 275 276 print STDOUT "** if you use csh, tcsh or equivalent as your shell, add the following to your .cshrc\n"; 277 print STDOUT " if (-e $psconfdir/psconfig.csh) then\n"; 278 print STDOUT " alias psconfig \"source $psconfdir/psconfig.csh\"\n"; 279 print STDOUT " else\n"; 280 print STDOUT " alias psconfig \"echo psconfig not available\"\n"; 281 print STDOUT " endif\n"; 282 print STDOUT " psconfig default\n"; 283 print STDOUT "\n"; 284 285 print STDOUT "** if you use sh, bash or equivalent as your shell, add the following to your .bashrc\n"; 286 print STDOUT " if [ -f $psconfdir/psconfig.csh ]; then\n"; 287 print STDOUT " alias psconfig='source $psconfdir/psconfig.bash'\n"; 288 print STDOUT " else\n"; 289 print STDOUT " alias psconfig='echo psconfig not available'\n"; 290 print STDOUT " fi\n"; 291 print STDOUT " psconfig default\n"; 292 print STDOUT "\n"; 293 294 exit 0; 256 295 } 257 296
Note:
See TracChangeset
for help on using the changeset viewer.
