home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume2 / xtroff / patch3 / ximakedo.sh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  1988-11-14  |  871 b   |  30 lines

  1. #! /bin/sh
  2. # Edit this to change this to the top directory where your X11R3 source is
  3. # something like /usr/src/local/X.V11R3
  4. TOPDIR=please/change/this/to/the/real/X/top/level/directory
  5. if test -d xtroff ; then
  6.     cd xtroff
  7. fi
  8. if test -f suntroff.c -a -f xtroff.manX ; then
  9.     true
  10. else
  11.     echo 'Please cd to contrib/clients/xtroff before running this script'
  12.     exit 1
  13. fi
  14. if test ! \( -d $TOPDIR -a -d $TOPDIR/util -a -d $TOPDIR/util/scripts \) ; then
  15.     echo 'Please fix TOPDIR and run this script again'
  16.     exit 1
  17. elif test ! -x $TOPDIR/util/scripts/ximake.sh ; then
  18.     echo Something wrong - $TOPDIR/util/scripts/ximake.sh isn\'t executable
  19.     exit 1
  20. else
  21.     $TOPDIR/util/scripts/ximake.sh $TOPDIR
  22.     cd XtStuff
  23.     case $TOPDIR in
  24.         /*);;
  25.         *)TOPDIR=../$TOPDIR;;
  26.     esac
  27.     $TOPDIR/util/scripts/ximake.sh $TOPDIR
  28. fi
  29. echo Now run \'make depend\', \'make\', \'make xfonts\' and \'make install\'
  30.