release.sh: search for OLDVERSION following sed

This commit is contained in:
nick black 2020-05-07 01:37:52 -04:00
parent 5d3d99c602
commit 52428b9f27
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 4 additions and 2 deletions

View File

@ -70,7 +70,6 @@ drop_bricks(struct notcurses* nc, struct ncplane** arr, int arrcount){
}
}while(rangee - ranges + 1 >= FALLINGMAX);
}
free(arr);
return 0;
}

View File

@ -11,10 +11,13 @@ VERSION="$2"
vi CHANGELOG.md
BUMP="CMakeLists.txt doc/Doxyfile doc/FreeBSD-Makefile doc/man/man*/* doc/man/index.html python/setup.py rust/*/Cargo.toml rust/libnotcurses-sys/build.rs tools/notcurses.spec"
git clean -f -d -x
BUMP="CMakeLists.txt doc/Doxyfile doc/FreeBSD-Makefile doc/man/man*/* doc/man/index.html python/setup.py rust/*/Cargo.toml rust/libnotcurses-sys/build.rs"
for i in $BUMP ; do
sed -i -e "s/$OLDVERSION/$VERSION/g" $i
done
echo "Checking for instances of $OLDVERSION..."
grep -rF "$OLDVERSION" *
git commit -a -m v$VERSION
git push
git pull