c89 409 B

1234567891011121314151617181920212223
  1. #! /bin/sh -
  2. #
  3. # Script borrowed from Fedora, slightly adapted
  4. # for Dragora GNU/Linux-Libre.
  5. #
  6. default_flag="-std=c89"
  7. for option in "$@"
  8. do
  9. case $option in
  10. -ansi | -std=c89 | -std=iso9899:1990 )
  11. default_flag=""
  12. ;;
  13. -std=*)
  14. echo "`basename -- "$0"` called with non ANSI/ISO C option $option" 1>&2
  15. exit 1
  16. ;;
  17. esac
  18. done
  19. exec gcc $default_flag ${1+"$@"}