made build script python3 copatible

This commit is contained in:
Ilu
2023-04-28 15:05:03 +02:00
parent edbd20e79b
commit 5b5f78c674

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python2.7
#!/usr/bin/python
import os, sys, shutil, re, textwrap
COMPILER = "i586-pc-msdosdjgpp-gcc"
@@ -61,18 +61,19 @@ def main():
"outfile": BIN_DIR + "/" + BIN_NAME,
"srcfiles": " ".join(cfiles),
"libs": " ".join(map(lambda x: "-l" + x, DLIBS)),
"argv" : " ".join(sys.argv[1:])
})
"argv": " ".join(sys.argv[1:]),
},
)
print "compiling..."
print("compiling...")
print(" {}".format(cmd))
res = os.system(cmd)
print "deleting temporary files..."
print("deleting temporary files...")
if os.path.exists(TEMPSRC_DIR):
shutil.rmtree(TEMPSRC_DIR)
print "done" + (" with errors" if res else "")
print("done" + (" with errors" if res else ""))
if __name__ == "__main__":