c89.sh 211 B

123456789101112131415
  1. #!/bin/sh -k
  2. #
  3. # Re-order arguments so that -L comes first
  4. #
  5. opts=""
  6. lopts=""
  7. for arg in $* ; do
  8. case $arg in
  9. -L*) lopts="$lopts $arg" ;;
  10. *) opts="$opts $arg" ;;
  11. esac
  12. done
  13. c89 $lopts $opts