update_version.sh 222 B

1234567
  1. #!/bin/sh
  2. VERSION=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' MegaZeux/Info.plist)
  3. echo "#define VERSION \"${VERSION}\"" > version.h
  4. echo "#define VERSION_DATE \" (`date -u +%Y%m%d`)\"" >> version.h