package.lua: do not use gitattributes export-ignore as it's used by github package as well

This commit is contained in:
tdesveaux 2019-05-30 19:10:03 +02:00
parent 82bcf8b676
commit 465e35e14d
2 changed files with 16 additions and 12 deletions

11
.gitattributes vendored
View File

@ -1,11 +0,0 @@
# Setup archive tags
.DS_Store export-ignore
.gitignore export-ignore
.gitattributes export-ignore
.gitmodules export-ignore
.travis.yml export-ignore
.editorconfig export-ignore
appveyor.yml export-ignore
Bootstrap.* export-ignore
packages/* export-ignore

View File

@ -217,7 +217,22 @@ if kind == "source" then
print("Creating source code package...")
if not execQuiet("git add -f build") or
local excludeList = {
".gitignore",
".gitattributes",
".gitmodules",
".travis.yml",
".editorconfig",
"appveyor.yml",
"Bootstrap.*",
"packages/*",
}
local includeList = {
"build",
}
if not execQuiet("git rm --cached -r -f --ignore-unmatch "..table.concat(excludeList, ' ')) or
not execQuiet("git add -f "..table.concat(includeList, ' ')) or
not execQuiet("git stash") or
not execQuiet("git archive --format=zip -9 -o ../%s-src.zip --prefix=%s/ stash@{0}", pkgName, pkgName) or
not execQuiet("git stash drop stash@{0}")