mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-23 09:16:04 +01: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()
|
||||
impfilename = os.path.join(root,file)
|
||||
entry.filename = os.path.relpath(impfilename,rootdir).replace("\\","/")
|
||||
if(entry.filename.startswith(".git")):continue
|
||||
if(entry.filename.startswith(".")):continue
|
||||
print("pak: "+entry.filename)
|
||||
with open(impfilename, "rb") as importfile:
|
||||
pakfile.write(importfile.read())
|
||||
|
Loading…
Reference in New Issue
Block a user