]> git.codecow.com Git - Monocypher.git/commitdiff
No longer overwrite __git__ -> $VERSION replacement
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 21 Oct 2019 15:53:32 +0000 (17:53 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 21 Oct 2019 15:53:32 +0000 (17:53 +0200)
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.

release.sh

index 8d9bfe79249bd6287bc17b8e65e45eecdae96719..cbe485fc4c26b68297090501f892cf028fcbd509 100755 (executable)
@@ -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