From: Fabian Groffen Date: Sat, 13 Oct 2007 15:57:33 +0000 (-0000) Subject: Greatly speed-up creating a tarball by omitting .svn directories during X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=d35ae0e009d963db1ae092e661edaaa643fe4a2e;p=portage.git Greatly speed-up creating a tarball by omitting .svn directories during copying. svn path=/main/branches/prefix/; revision=8113 --- diff --git a/tarball.sh b/tarball.sh index e460bc615..114bc56eb 100755 --- a/tarball.sh +++ b/tarball.sh @@ -23,7 +23,7 @@ if [ -e ${DEST} ]; then fi install -d -m0755 ${DEST} -cp -pPR . ${DEST} +rsync -a --exclude='.svn' . ${DEST} sed -i -e '/^VERSION=/s/^.*$/VERSION="'${V}-prefix'"/' ${DEST}/pym/portage/__init__.py sed -i -e "s/##VERSION##/${V}/g" ${DEST}/man/emerge.1 #rm ${DEST}/man/*.eclass.5 @@ -31,8 +31,6 @@ sed -i -e "s/##VERSION##/${V}/g" ${DEST}/man/emerge.1 #sed -i -e "s:\t: :g" ${DEST}/ChangeLog cd ${DEST} -find -name CVS -type d | xargs --no-run-if-empty rm -rf -find -name '.svn' -type d | xargs --no-run-if-empty rm -rf find -name '*~' | xargs --no-run-if-empty rm -f find -name '*.pyc' | xargs --no-run-if-empty rm -f find -name '*.pyo' | xargs --no-run-if-empty rm -f