make 221 B

12345678910111213141516
  1. #!/bin/sh
  2. if [ "X$MAKE" != "X" ] && echo "$MAKE" | grep -q '`'
  3. then
  4. MAKE=
  5. fi
  6. if [ X$MAKE = X ]
  7. then MAKE=make
  8. for p in `echo $PATH | sed 's/:/ /g'`
  9. do if [ -f $p/gmake ]
  10. then MAKE=gmake
  11. fi
  12. done
  13. fi
  14. echo $MAKE