2
0
mirror of https://frontier.innolan.net/github/amigaos-cross-toolchain6.git synced 2024-10-19 10:29:55 +00:00

@B instead of touching derived lex files, now the source file date is reset to 1970. This allows the detection of new files

This commit is contained in:
bebbo
2017-02-18 20:17:10 +01:00
parent 759644f061
commit a6370fd76f
2 changed files with 12 additions and 6 deletions

View File

@ -6,7 +6,9 @@ from logging import debug, info, error
from os import path
import contextlib
from distutils import spawn, sysconfig
import os, glob
import os
import glob
import datetime
import shutil
import site
import subprocess
@ -369,7 +371,9 @@ def recipe(name, nargs=0):
mmax = mt
if mmax > os.stat(stamp).st_mtime:
mstamp = path.join('{stamps}', mtarget + '-make*')
info('removing stamp for "%s"', mstamp)
info('removing stamp for "%s"\n\tcaused by "%s" %s'
'\n\tstamp is "%s" %s', mstamp, mfile, datetime.datetime.fromtimestamp(mmax),
stamp, datetime.datetime.fromtimestamp(os.stat(stamp).st_mtime))
for f in glob.glob(mstamp):
remove(f)