🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
453 B

  1. #!/bin/sh
  2. #
  3. # Generate a header file with the current source revision
  4. outdir=`pwd`
  5. cd `dirname $0`
  6. srcdir=..
  7. header=$outdir/include/SDL_revision.h
  8. rev=`sh showrev.sh 2>/dev/null`
  9. if [ "$rev" != "" ]; then
  10. echo "#define SDL_REVISION \"$rev\"" >"$header.new"
  11. echo "#define SDL_REVISION_NUMBER 0" >>"$header.new"
  12. if diff $header $header.new >/dev/null 2>&1; then
  13. rm "$header.new"
  14. else
  15. mv "$header.new" "$header"
  16. fi
  17. fi