mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
tools: Port meson-mkenums.sh to Python
This commit is contained in:
@@ -22,7 +22,6 @@ result = subprocess.run(
|
||||
stderr=subprocess.PIPE
|
||||
)
|
||||
if result.returncode == 0:
|
||||
timestamp = datetime.now().strftime("%a %b %d %H:%M:%S %Z %Y")
|
||||
with open(os.path.join(top_builddir, 'pdb', 'stamp-enumcode.h'), 'w') as f:
|
||||
f.write(f"/* Generated on {timestamp}. */\n")
|
||||
f.write(f"/* Generated on {datetime.now().strftime('%a %b %d %H:%M:%S %Z %Y')}. */\n")
|
||||
sys.exit(result.returncode)
|
||||
|
@@ -19,7 +19,6 @@ result = subprocess.run(
|
||||
stderr=subprocess.PIPE
|
||||
)
|
||||
if result.returncode == 0:
|
||||
timestamp = datetime.now().strftime("%a %b %d %H:%M:%S %Z %Y")
|
||||
with open(os.path.join(top_builddir, 'pdb', 'stamp-enumgen.h'), 'w') as f:
|
||||
f.write(f"/* Generated on {timestamp}. */\n")
|
||||
f.write(f"/* Generated on {datetime.now().strftime('%a %b %d %H:%M:%S %Z %Y')}. */\n")
|
||||
sys.exit(result.returncode)
|
||||
|
@@ -19,7 +19,6 @@ result = subprocess.run(
|
||||
stderr=subprocess.PIPE
|
||||
)
|
||||
if result.returncode == 0:
|
||||
timestamp = datetime.now().strftime("%a %b %d %H:%M:%S %Z %Y")
|
||||
with open(os.path.join(top_builddir, 'pdb', 'stamp-pdbgen.h'), 'w') as f:
|
||||
f.write(f"/* Generated on {timestamp}. */\n")
|
||||
f.write(f"/* Generated on {datetime.now().strftime('%a %b %d %H:%M:%S %Z %Y')}. */\n")
|
||||
sys.exit(result.returncode)
|
||||
|
Reference in New Issue
Block a user