]> git.codecow.com Git - Monocypher.git/commitdiff
Change release.sh to use find -exec
authorFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Mon, 21 Oct 2019 17:46:21 +0000 (19:46 +0200)
committerFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Mon, 21 Oct 2019 17:46:21 +0000 (19:46 +0200)
This avoids some potential weirdness with whitespace in find and for.

release.sh

index cbe485fc4c26b68297090501f892cf028fcbd509..0b161ff804c7902199945c4cc6d5cf49f533db5f 100755 (executable)
@@ -23,10 +23,7 @@ rm -rf $FOLDER
 rsync -ad --exclude-from=tarball_ignore ./ $FOLDER
 
 # Replace version markers by the actual version number (from tags)
-for file in `find monocypher-$VERSION -type f`
-do
-    sed -i "s/__git__/$VERSION/g" $file
-done
+find $FOLDER -type f -exec sed -i "s/__git__/$VERSION/g" \{\} \;
 
 # Remove the dist target from the makefile (no recursive releases!),
 # and the tests/vector.h target, which ships with the tarball.