File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ find "$DIR" -not -path '*/\.*' -type f -print0 | xargs -0 sed -i "/^#include/! s
5555find " $DIR " -not -path ' */\.*' -type f -print0 | xargs -0 sed -i ' s/^const int CURVE_B/static const int CURVE_B/g'
5656
5757while true ; do
58- read -r -p " Update Rust extern references as well? [yn]: " yn
58+ read -r -p " Update Rust extern references and Cargo.toml as well? [yn]: " yn
5959 case $yn in
6060 [Yy]* ) break ;;
6161 [Nn]* ) exit ;;
@@ -64,5 +64,10 @@ while true; do
6464done
6565
6666cd " $ORIGDIR "
67+
68+ # Update the `links = ` in the manifest file.
69+ sed -i -r " s/^links = \" .*\" $/links = \" rustsecp256k1_v${VERSIONCODE} \" /" Cargo.toml
70+
71+ # Update the extern references in the Rust FFI source files.
6772find " ./src/" -name " *.rs" -type f -print0 | xargs -0 sed -i -r " s/rustsecp256k1_v[0-9]+_[0-9]+_[0-9]+_(.*)([\" \(])/rustsecp256k1_v${VERSIONCODE} _\1\2/g"
6873
You can’t perform that action at this time.
0 commit comments