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:
parent
9701d3afb6
commit
ed6b957164
@ -71,13 +71,16 @@ mkdir -p ${outdir}
|
|||||||
# Some files should be excluded from the package
|
# Some files should be excluded from the package
|
||||||
cat << EOF > exclude.txt
|
cat << EOF > exclude.txt
|
||||||
.git
|
.git
|
||||||
|
.git-blame-ignore-revs
|
||||||
|
.github
|
||||||
.gitignore
|
.gitignore
|
||||||
.gitmodules
|
.gitmodules
|
||||||
.travis.yml
|
ISSUE_TEMPLATE.md
|
||||||
package
|
|
||||||
doc
|
doc
|
||||||
|
package
|
||||||
EOF
|
EOF
|
||||||
# Also include all files which are ignored by git
|
# Also include all files which are ignored by git
|
||||||
|
# TODO: .gitattributes helper for the above?
|
||||||
git ls-files --other --directory >> exclude.txt
|
git ls-files --other --directory >> exclude.txt
|
||||||
# Now copy files to $outdir
|
# Now copy files to $outdir
|
||||||
rsync -a --exclude-from 'exclude.txt' ${srcdir}/ ${outdir}/
|
rsync -a --exclude-from 'exclude.txt' ${srcdir}/ ${outdir}/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user