From: Loup Vaillant Date: Mon, 21 Oct 2019 15:53:32 +0000 (+0200) Subject: No longer overwrite __git__ -> $VERSION replacement X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=5c283223fb092bf41ec081d0f259cf6c0bb0df3e;p=Monocypher.git No longer overwrite __git__ -> $VERSION replacement The replacement was going fine, except for makefile. This happened because the new makefile was overwritten by the old (truncated). Now we truncate in place. --- diff --git a/release.sh b/release.sh index 8d9bfe7..cbe485f 100755 --- a/release.sh +++ b/release.sh @@ -30,10 +30,10 @@ done # Remove the dist target from the makefile (no recursive releases!), # and the tests/vector.h target, which ships with the tarball. -sed '/tests\/vectors.h:/,$d' makefile > $FOLDER/makefile +sed -i '/tests\/vectors.h:/,$d' $FOLDER/makefile # Remove contributor notes from the README -sed '/Contributor notes/,$d' README.md > $FOLDER/README.md +sed -i '/Contributor notes/,$d' $FOLDER/README.md # Make the actual tarball tar -cvzf $TARBALL $FOLDER