c99 429 B

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