lyx_mirror/development/cmake/po/update-gmo.py
Vincent van Ravesteijn f63221aba4 CMake: Add target update-gmo
This target will update the gmo files if and only if the associated
po-file is modified. To determine whether a file is modified, 'git
status --porcelain' is used.

This follows up on commit 06782542.
2014-02-03 20:07:12 +01:00

8 lines
147 B
Python

#! /usr/bin/env python
###############
import sys, os, shutil
if os.stat(sys.argv[1]).st_size > 0:
shutil.copyfile(sys.argv[2], sys.argv[3])