videohubctrl can be used to control Blackmagic Design Videohub SDI router device over the network.
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.

version.sh 723B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. # Create/Update version.h
  3. # Written by Georgi Chorbadzhiyski
  4. VERSION=$(cat RELEASE 2>/dev/null || echo 'unknown')
  5. GIT_VER=$(git describe --tags --dirty --always 2>/dev/null || echo 'release')
  6. TMPFILE=`mktemp /tmp/version.h.XXXXXX` || exit 1
  7. trap "{ rm -f $TMPFILE ; exit 1 ; }" INT TERM
  8. echo "\
  9. #ifndef _VERSION_H_
  10. #define _VERSION_H_
  11. #define VERSION \"${VERSION}\"
  12. #define GIT_VER \"${GIT_VER}\"
  13. #define PROGRAM_NAME \"videohubctrl\"
  14. #endif\
  15. " > $TMPFILE
  16. if ! cmp version.h $TMPFILE >/dev/null 2>/dev/null
  17. then
  18. cat $TMPFILE > version.h
  19. echo "Updated version.h with VERSION=${VERSION} GIT_VER=${GIT_VER}"
  20. else
  21. echo "version.h is up to date with VERSION=${VERSION} GIT_VER=${GIT_VER}"
  22. fi
  23. rm -f $TMPFILE