Skip to content

Commit

Permalink
Move the .git directory out of the way before building binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Jan 27, 2021
1 parent e90f476 commit 13ffb40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/buildRelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ fi
# Cleanup any old build, make space for the new one, and initialize scripts.
#

if [ -e .git ] ; then
echo Moving .git directory out of the way.
mv .git dot-git-directory
fi

echo Preparing build trees.

rm -rf build
Expand Down Expand Up @@ -133,4 +138,9 @@ xz -9v canu-$version.Darwin-amd64.tar
xz -9v canu-$version.Linux-amd64.tar
xz -9v canu-$version.tar

if [ -e dot-git-directory ] ; then
echo Restoring .git directory.
mv dot-git-directory .git
fi

exit

0 comments on commit 13ffb40

Please sign in to comment.