From dc67e9c32de364b75942ce0f0dbb64b9d3f59afe Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 29 Oct 2013 22:48:11 -0400 Subject: debian/rules: Fix unpack-orig-source. Ignore .git/ and fix "debian/" test. --- diff --git a/debian/rules b/debian/rules index c314226..70ba43e 100755 --- a/debian/rules +++ b/debian/rules @@ -31,6 +31,7 @@ unpack-orig-source: get-orig-source # Remove currently unpacked source. for f in * .[!.] .??*; do \ if [ -e $${f} ] && [ $${f} != debian ] && \ + [ $${f} != .git ] && \ [ $${f} != .gitignore ]; then \ rm -Rf $${f}; \ fi; \ @@ -45,7 +46,8 @@ unpack-orig-source: get-orig-source # into the top-level directory. set -e; \ for f in */ .[!.]/ .??*/; do \ - if [ -d $${f} ] && [ $${f} != debian ]; then \ + if [ -d $${f} ] && [ $${f} != debian/ ] && [ $${f} != .git/ ]; \ + then \ for ff in $${f}/* $${f}/.[!.] $${f}/.??*; do \ if [ -e $${ff} ]; then \ mv $${ff} .; \ -- cgit v0.9.1