mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-23 18:03:51 +08:00
Build: make snapshot remove .git directory from tarball
This commit is contained in:
parent
7bd456ed7b
commit
9225bfa691
@ -34,7 +34,7 @@ snapshot:
|
||||
mkdir /tmp/${SNAPDIR}
|
||||
cp -RPp * /tmp/${SNAPDIR}
|
||||
(cd /tmp/${SNAPDIR}; make clean)
|
||||
find /tmp/${SNAPDIR} -name .svn -exec rm -rf -- {} \; 2>/dev/null || true
|
||||
rm -rf /tmp/${SNAPDIR}/.git 2>/dev/null || true
|
||||
tar -cvjpf ${SNAPFILE} -C /tmp ${SNAPDIR}
|
||||
rm -rf /tmp/${SNAPDIR}
|
||||
ls -l ${SNAPFILE}
|
||||
|
Loading…
Reference in New Issue
Block a user