gcc_version.sh 236 B

1234567891011121314151617
  1. #!/bin/sh
  2. #
  3. # wrapper arroung gcc, that intercepts --version and reports instead
  4. # $GCC_VERSION
  5. #
  6. if [ -n "$GCC_VERSION" ]; then
  7. for o in $@; do
  8. if [ "$o" = "--version" ] ; then
  9. echo $GCC_VERSION
  10. exit 0
  11. fi
  12. done
  13. fi
  14. gcc $@