home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume2 / window / part4 / UPGRADE < prev   
Encoding:
Text File  |  1986-11-30  |  573 b   |  30 lines

  1. #! /bin/sh
  2. CURSRC=/usr/src/usr.lib/libcurses
  3.  
  4. echo 'Copying in the 4.2 BSD libcurses'
  5. (cd $CURSRC; tar cf - .) | tar xvpf -
  6.  
  7. echo 'Replacing modules:'
  8. for i in *.new
  9. do
  10.     echo " $i"
  11.     mv `basename $i .new` `basename $i .new`.orig
  12.     cp $i `basename $i .new`
  13. done
  14. echo ' '
  15.  
  16. echo 'Patching modules:'
  17. for i in *.pat
  18. do
  19.     echo " $i"
  20.     patch `basename $i .pat` $i
  21. done
  22. echo ' '
  23.  
  24. echo 'Done'
  25.  
  26. echo 'To compile, "make"'
  27. echo 'To install, "make install"'
  28. echo '(But first save the old /usr/include/curses.h and /usr/lib/libcurs*)'
  29. echo 'To clean up, "make clean; rm *.orig *.new *.pat"'
  30.