x11mf.sh 415 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. # $XConsortium: x11mf.sh /main/2 1995/07/19 18:06:05 drk $
  3. #
  4. # generate a Makefile within the build tree
  5. #
  6. # usage: x11mf [treedir]
  7. #
  8. if [ x$1 != x ]; then
  9. tree=$1
  10. else
  11. tree=/x11
  12. fi
  13. dir=`pwd`
  14. top=`(cd $tree; /bin/pwd)`
  15. intree=no
  16. case $dir in
  17. $top*) intree=yes;;
  18. esac
  19. if [ $intree != yes ]; then
  20. echo "$0: Must be underneath $tree"
  21. exit 1
  22. fi
  23. (cd ..; make SUBDIRS=`basename $dir` Makefiles)