1
1
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:
Bruno Lopes
2025-04-16 22:16:03 -03:00
parent c7308335a5
commit 42049493cb
6 changed files with 71 additions and 60 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)