[med-svn] [Git][med-team/community/package_template][master] More reliable usage of Files-Excluded

Andreas Tille gitlab at salsa.debian.org
Thu Jul 5 14:59:39 BST 2018


Andreas Tille pushed to branch master at Debian Med / community / package_template


Commits:
59e95123 by Andreas Tille at 2018-07-05T15:59:20+02:00
More reliable usage of Files-Excluded

- - - - -


1 changed file:

- debian/get-orig-source_Files-Excluded


Changes:

=====================================
debian/get-orig-source_Files-Excluded
=====================================
--- a/debian/get-orig-source_Files-Excluded
+++ b/debian/get-orig-source_Files-Excluded
@@ -26,7 +26,7 @@ mv ${ONAME} ${TARDIR}
 rm -rf ${TARDIR}/.git
 # Remove according to "Files-Excluded"
 # Its a bit tricky since '*' needs to be escaped ...
-for excl in $(grep "^Files-Excluded" ${COPYRIGHT} | sed -e 's/^Files-Excluded: *//' -e 's/\*/\\*/g') ; do find . -path "$(echo $excl | sed 's/^\\//')" -delete ; done
+for excl in $(grep "^Files-Excluded" ${COPYRIGHT} | sed -e 's/^Files-Excluded: */ /' -e 's/ \*/ \\*/g') ; do find . -path "$(echo $excl | sed 's/^\\//')" | xargs rm -rf ; done
 
 GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
 rm -rf ${TARDIR}



View it on GitLab: https://salsa.debian.org/med-team/community/package_template/commit/59e95123279ae68cbdf997a00a17a391a6a7c3e4

-- 
View it on GitLab: https://salsa.debian.org/med-team/community/package_template/commit/59e95123279ae68cbdf997a00a17a391a6a7c3e4
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180705/0c44d178/attachment.html>


More information about the debian-med-commit mailing list