Fixes newline issue on windows with the paq script

This commit is contained in:
Jimmi Holst Christensen 2020-06-05 10:42:36 +01:00
parent bffe1037b2
commit 48e4af9653
2 changed files with 7 additions and 4 deletions

3
.gitattributes vendored
View File

@ -1,3 +1,6 @@
# Github language settings
*.h linguist-language=c
*.c linguist-language=c
*.h text eol=auto
*.c text eol=auto

View File

@ -134,7 +134,7 @@ for f in intro_files:
sys.stdout.write(open(f, 'r').read())
print("*/")
# print(os.linesep + "#ifndef " + macro + "_SINGLE_HEADER");
# print("\n#ifndef " + macro + "_SINGLE_HEADER");
# print("#define " + macro + "_SINGLE_HEADER");
print("#ifndef NK_SINGLE_FILE");
print(" #define NK_SINGLE_FILE");
@ -145,7 +145,7 @@ for f in pub_files:
sys.stdout.write(open(f, 'r').read())
# print("#endif /* " + macro + "_SINGLE_HEADER */");
print(os.linesep + "#ifdef " + macro + "_IMPLEMENTATION");
print("\n#ifdef " + macro + "_IMPLEMENTATION");
print("");
for f in priv_files1:
@ -160,8 +160,8 @@ for f in priv_files2:
print("#endif /* " + macro + "_IMPLEMENTATION */");
print(os.linesep + "/*")
print("\n/*")
for f in outro_files:
sys.stdout.write(open(f, 'r').read())
print("*/" + os.linesep)
print("*/\n")