CMake: Regenerate deleted gmo files

This commit is contained in:
Vincent van Ravesteijn 2014-02-03 21:10:48 +01:00
parent 181e64c724
commit eb219e1130

View File

@ -3,5 +3,5 @@
###############
import sys, os, shutil
if os.stat(sys.argv[1]).st_size > 0:
if os.stat(sys.argv[1]).st_size > 0 or not os.path.isfile(sys.argv[3]):
shutil.copyfile(sys.argv[2], sys.argv[3])