f95a4dc560
- tweak WRKDIST and WRKSRC and regen patches accordingly - simplify substitution in pre-configure no package change
36 lines
842 B
Plaintext
36 lines
842 B
Plaintext
$OpenBSD: patch-run_getsts,v 1.2 2007/12/18 09:08:24 ajacoutot Exp $
|
|
--- run/getsts.orig Tue Jan 14 20:21:06 1997
|
|
+++ run/getsts Tue Dec 18 09:53:05 2007
|
|
@@ -24,19 +24,22 @@
|
|
#
|
|
set stsnum=81
|
|
set prelaunch=0
|
|
-set ftphost=192.149.89.61
|
|
-set satdir=/home/manfred
|
|
-set satuser=manfred
|
|
+set ftphost=spacelink.msfc.nasa.gov
|
|
+set satdir=__PREFIX__/lib
|
|
+set satuser=sattrack
|
|
#
|
|
#
|
|
#
|
|
-set userid=$USER@`hostname`.`domainname`
|
|
+set hostdot=`hostname | grep '\.'`
|
|
+if ("$hostdot" == "") then
|
|
+ set userid=$USER@`hostname`.`domainname`
|
|
+else
|
|
+ set userid=$USER@`hostname`
|
|
+endif
|
|
#
|
|
-if ($USER == $satuser) then
|
|
- set satdirusr=$satdir
|
|
- else
|
|
- set satdirusr=$HOME
|
|
- mkdir -p $HOME/SatTrack/tle
|
|
+set satdirusr=$satdir
|
|
+if (! -d $satdirusr/SatTrack/tle) then
|
|
+ mkdir -p $satdirusr/SatTrack/tle
|
|
endif
|
|
#
|
|
cd $satdirusr/SatTrack/tle
|