summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-01-03 21:59:34 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-01-03 21:59:34 +0000
commit83c66ee37230989667d9b9ecccb72534e38d5daf (patch)
tree2c2937b0f16e98477ebcc904046455d9dceb444e
parent09dcf979f396777aeb822058211f9eb0db4dc238 (diff)
downloadubox-msx-lib-83c66ee37230989667d9b9ecccb72534e38d5daf.tar.gz
ubox-msx-lib-83c66ee37230989667d9b9ecccb72534e38d5daf.zip
Ensure that the files are always processed in the same order
This is important to detect if the deps have changed.
-rwxr-xr-xtools/mkdeps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkdeps.py b/tools/mkdeps.py
index aa1c7e0..81976da 100755
--- a/tools/mkdeps.py
+++ b/tools/mkdeps.py
@@ -38,7 +38,7 @@ def main():
inc = ["-I%s" % d for d in args.include.split(":")]
cmd = ["sdcc", "-MM"] + inc
result = []
- for d in glob.glob(os.path.join(args.dir, "*.c")):
+ for d in sorted(glob.glob(os.path.join(args.dir, "*.c"))):
if args.verbose:
print("running %r" % ' '.join(cmd + [d]))
out = subprocess.run(cmd + [d], stdout=subprocess.PIPE,