mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-10 23:27:53 +00:00
makepak.py: Skip all filenames starting with .
This makes it much simpler to define a buildroot package for xash-extras buildroot places various buildroot-internal dot files in the package build directory
This commit is contained in:
parent
1332381e2d
commit
23998ef720
@ -24,7 +24,7 @@ for root, subFolders, files in os.walk(rootdir):
|
|||||||
entry = FileEntry()
|
entry = FileEntry()
|
||||||
impfilename = os.path.join(root,file)
|
impfilename = os.path.join(root,file)
|
||||||
entry.filename = os.path.relpath(impfilename,rootdir).replace("\\","/")
|
entry.filename = os.path.relpath(impfilename,rootdir).replace("\\","/")
|
||||||
if(entry.filename.startswith(".git")):continue
|
if(entry.filename.startswith(".")):continue
|
||||||
print("pak: "+entry.filename)
|
print("pak: "+entry.filename)
|
||||||
with open(impfilename, "rb") as importfile:
|
with open(impfilename, "rb") as importfile:
|
||||||
pakfile.write(importfile.read())
|
pakfile.write(importfile.read())
|
||||||
|
Loading…
Reference in New Issue
Block a user