home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / unix / ftpscrip.tz / ftpscrip / FtpExtra / runme < prev   
Encoding:
Text File  |  1991-09-10  |  1.9 KB  |  53 lines

  1. #!/bin/csh -f
  2.  
  3. # This will do everything neccessary to install everything, If you know
  4. # what youre doing with unix, you night want to browse through this to see
  5. # what I'm fiddling with. 
  6.  
  7. # This is the default place for FTPEXTRAS to go.  You can change it, but I
  8. # dont gaurentee everything will work right. I highly recommend leaving it.
  9. # You'll have to make sure the directories you want exist, I dont create
  10. # them, beyond the default of course.
  11. # If you change this then please  note that the commands below that move
  12. # current directory around, wont be right.
  13. set FTPEXTRAS = $HOME/FtpExtra 
  14.  
  15. # Ok move this whole thing to the right place.
  16. echo If you see a warning about identical directories, ignore it.
  17. cd ..
  18. mv FtpExtra $HOME
  19. cd $FTPEXTRAS
  20.  
  21. # Compile ftpmenu.c  Using cc is important, gcc doesnt work right.  Did
  22. # you make the required changes to ftpmenu.c?
  23. cc -O -o $FTPEXTRAS/bin/ftpmenubase $FTPEXTRAS/ftpmenu.c -lcurses -ltermcap 
  24.  
  25. # add some lines to youre .netrc
  26. cat >> $HOME/.netrc << stop
  27.  
  28. stop
  29. mv $HOME/.netrc $HOME/.netrc.bak
  30. cat $HOME/.netrc.bak $FTPEXTRAS/ident $FTPEXTRAS/netrc > $HOME/.netrc
  31. chmod 700 $HOME/.netrc
  32.  
  33. # add some lines to your .cshrc: What? you dont use Csh, then youll have to
  34. # add the equiveanlent to the equivalent file, in your shell.  I think
  35. # .profile for Bourne shell. Look in FTPEXTRAS/cshrc. Add all that  stuff.
  36. mv $HOME/.cshrc $HOME/.cshrc.bak
  37. cat $HOME/.cshrc.bak $FTPEXTRAS/ident $FTPEXTRAS/cshrc > $HOME/.cshrc
  38.  
  39. # mail me a auto-note so I get some feel for who used this.  If you have 
  40. # a  good reason not to want to do this, just take out these lines.
  41. # I promise, "No salesmen will  call, no one will  visit"  :-)
  42. set user = `whoami`
  43. set host = `hostname`
  44. set domain = `domainname`
  45. mail -s 'Ftp Scripts Used' jedavis@blondie.ucdavis.edu << stop
  46. This is just note to say $user @ $host . $domain 
  47. has run  the ftp scripts.
  48.  
  49. -James (to myself of course)
  50.  
  51. stop
  52.  
  53.