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:
Gleb Mazovetskiy 2020-12-30 10:40:41 +00:00 committed by Alibek Omarov
parent 1332381e2d
commit 23998ef720
1 changed files with 1 additions and 1 deletions

View File

@ -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())