getversion.py 388 B

1234567891011121314
  1. #!/usr/bin/env python
  2. # This script parses the version number in dtool/PandaVersion.pp
  3. # and returns it on the command-line. This is useful for the
  4. # automated scripts that build the Panda3D releases.
  5. from makepandacore import ParsePandaVersion, GetMetadataValue
  6. import sys
  7. version = GetMetadataValue('version')
  8. version = version.strip()
  9. sys.stdout.write(version)
  10. sys.stdout.flush()