From 23998ef72040178331315bb471163f0c62746adf Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Wed, 30 Dec 2020 10:40:41 +0000 Subject: [PATCH] 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 --- scripts/makepak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepak.py b/scripts/makepak.py index 72e61710..6853a735 100644 --- a/scripts/makepak.py +++ b/scripts/makepak.py @@ -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())