Skip to content

Commit 65fe733

Browse files
committed
Update Cargo.toml link in vendor script
1 parent ff6e944 commit 65fe733

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

secp256k1-sys/vendor-libsecp.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ find "$DIR" -not -path '*/\.*' -type f -print0 | xargs -0 sed -i "/^#include/! s
5555
find "$DIR" -not -path '*/\.*' -type f -print0 | xargs -0 sed -i 's/^const int CURVE_B/static const int CURVE_B/g'
5656

5757
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
5959
case $yn in
6060
[Yy]* ) break;;
6161
[Nn]* ) exit;;
@@ -64,5 +64,10 @@ while true; do
6464
done
6565

6666
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.
6772
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"
6873

0 commit comments

Comments
 (0)