1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Skip .git{,hub} files when packaging (#8743)

This commit is contained in:
Max Prokhorov 2022-12-06 13:31:16 +03:00 committed by GitHub
parent 9701d3afb6
commit ed6b957164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,13 +71,16 @@ mkdir -p ${outdir}
# Some files should be excluded from the package
cat << EOF > exclude.txt
.git
.git-blame-ignore-revs
.github
.gitignore
.gitmodules
.travis.yml
package
ISSUE_TEMPLATE.md
doc
package
EOF
# Also include all files which are ignored by git
# TODO: .gitattributes helper for the above?
git ls-files --other --directory >> exclude.txt
# Now copy files to $outdir
rsync -a --exclude-from 'exclude.txt' ${srcdir}/ ${outdir}/