🛠️🐜 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.

25 lines
482 B

  1. #!/bin/sh
  2. #
  3. # Print the current source revision, if available
  4. SDL_ROOT=$(dirname $0)/..
  5. cd $SDL_ROOT
  6. if test -x "$(command -v hg)"; then
  7. rev="$(hg parents --template 'hg-{rev}:{node|short}' 2>/dev/null)"
  8. if test $? = 0; then
  9. echo $rev
  10. exit 0
  11. fi
  12. fi
  13. if test -x "$(command -v p4)"; then
  14. rev="$(p4 changes -m1 ./...\#have 2>/dev/null| awk '{print $2}')"
  15. if test $? = 0; then
  16. echo $rev
  17. exit 0
  18. fi
  19. fi
  20. echo "hg-0:baadf00d"
  21. exit 1