old_contents: import time
  
  f = open('version.txt', 'w')
  f.write(time.strftime('%Y-%m-%d'))
  f.close()
  
new_contents: #!/usr/bin/env python
  
  import sys, time
  
  if '-' in sys.argv:
  	print(time.strftime('%Y-%m-%d'))
  else:
  	f = open('version.txt', 'w')
  	f.write(time.strftime('%Y-%m-%d'))
  	f.close()
  
subject: Make buildversion.py accept the argument - to print to stdout instead of a file