File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ This prefix ensures that no symbol collision can happen:
20
20
To update the vendored sources, use the ` vendor-libsecp.sh ` script:
21
21
22
22
```
23
- $ ./vendor-libsecp.sh depend <version-code> <rev>
23
+ $ ./vendor-libsecp.sh <rev>
24
24
```
25
25
26
- - Where ` <version-code> ` is the secp256k1-sys version number underscored: ` 0_1_2 ` .
27
- - Where ` <rev> ` is the git revision of libsecp256k1 to checkout.
26
+ Where ` <rev> ` is the git revision of libsecp256k1 to checkout. If you do not
27
+ specify a revision, the script will simply clone the repo and use whatever
28
+ revision the default branch is pointing to.
28
29
29
30
30
31
## Linking to external symbols
Original file line number Diff line number Diff line change 1
- # This file was automatically created by ./ vendor-libsecp.sh
1
+ # This file was automatically created by vendor-libsecp.sh
2
2
21ffe4b22a9683cf24ae0763359e401d1284cc7a
Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
# Set default variables
5
- : " ${SECP_VENDOR_GIT_ROOT:= $(git rev-parse --show-toplevel)} "
5
+ if [ -z " $SECP_VENDOR_GIT_ROOT " ]; then
6
+ SECP_VENDOR_GIT_ROOT=" $( git rev-parse --show-toplevel) "
7
+ else
8
+ SECP_VENDOR_GIT_ROOT=" $( realpath " $SECP_VENDOR_GIT_ROOT " ) "
9
+ fi
6
10
SECP_SYS=" $SECP_VENDOR_GIT_ROOT " /secp256k1-sys
7
11
DEFAULT_VERSION_CODE=$( grep version " $SECP_SYS /Cargo.toml" | sed ' s/\./_/g' | sed ' s/.*"\(.*\)".*/\1/' )
8
12
DEFAULT_DEPEND_DIR=" $SECP_SYS /depend"
@@ -83,7 +87,7 @@ rm -rf .git/ || true
83
87
popd
84
88
85
89
# Record revision
86
- echo " # This file was automatically created by $0 " > ./secp256k1-HEAD-revision.txt
90
+ echo " # This file was automatically created by $( basename " $0 " ) " > ./secp256k1-HEAD-revision.txt
87
91
echo " $SOURCE_REV " >> ./secp256k1-HEAD-revision.txt
88
92
89
93
# Patch source files
You can’t perform that action at this time.
0 commit comments