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
55
55
find " $DIR " -not -path ' */\.*' -type f -print0 | xargs -0 sed -i ' s/^const int CURVE_B/static const int CURVE_B/g'
56
56
57
57
while 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
59
59
case $yn in
60
60
[Yy]* ) break ;;
61
61
[Nn]* ) exit ;;
@@ -64,5 +64,10 @@ while true; do
64
64
done
65
65
66
66
cd " $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.
67
72
find " ./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"
68
73
You can’t perform that action at this time.
0 commit comments