patch-run_gettle 746 B

12345678910111213141516171819202122232425262728293031323334
  1. $OpenBSD: patch-run_gettle,v 1.3 2010/08/26 11:12:46 jasper Exp $
  2. --- run/gettle.orig Wed Mar 15 05:26:06 1995
  3. +++ run/gettle Tue Dec 18 09:53:05 2007
  4. @@ -24,18 +24,21 @@
  5. #
  6. #
  7. #
  8. -set ftphost=129.92.1.66
  9. -set satdir=/home/manfred
  10. -set satuser=manfred
  11. +set ftphost=archive.afit.af.mil
  12. +set satdir=${PREFIX}/lib
  13. +set satuser=sattrack
  14. #
  15. #
  16. #
  17. -set userid=$USER@`hostname`.`domainname`
  18. +set hostdot=`hostname | grep '\.'`
  19. +if ("$hostdot" == "") then
  20. + set userid=$USER@`hostname`.`domainname`
  21. +else
  22. + set userid=$USER@`hostname`
  23. +endif
  24. #
  25. -if ($USER == $satuser) then
  26. - set satdirusr=$satdir
  27. - else
  28. - set satdirusr=$HOME
  29. +set satdirusr=$satdir
  30. +if (! -d $satdirusr/SatTrack/tle) then
  31. mkdir -p $satdirusr/SatTrack/tle
  32. endif
  33. #