]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fixup to remove .git from makedist tarballs.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 1 May 2019 10:47:53 +0000 (12:47 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 1 May 2019 10:47:53 +0000 (12:47 +0200)
makedist.sh

index 87892293a2172a60c403c3a706b212199cefb08f..f538f8d0241dc5a9a5ed909f51ec6e39dbdb1a5f 100755 (executable)
@@ -317,6 +317,7 @@ if [ "$DOWIN" = "yes" ]; then
        info "git clone --depth=1 --no-tags -b $GITBRANCH $GITREPO unbound"
        git clone --depth=1 --no-tags -b $GITBRANCH $GITREPO unbound || error_cleanup "git clone failed"
        cd unbound || error_cleanup "Unbound not exported correctly from git"
+       rm -rf .git || error_cleanup "Failed to remove .git tracking information"
 
        # on a re-configure the cache may no longer be valid...
        if test -f mingw32-config.cache; then rm mingw32-config.cache; fi
@@ -458,6 +459,7 @@ info "git clone --depth=1 --no-tags -b $GITBRANCH $GITREPO unbound"
 git clone --depth=1 --no-tags -b $GITBRANCH $GITREPO unbound || error_cleanup "git clone failed"
 
 cd unbound || error_cleanup "Unbound not exported correctly from git"
+rm -rf .git || error_cleanup "Failed to remove .git tracking information"
 
 info "Adding libtool utils (libtoolize)."
 libtoolize -c --install || libtoolize -c || error_cleanup "Libtoolize failed."