Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-sectorbuilder
Commits
15c87356
Commit
15c87356
authored
Aug 23, 2019
by
Sidney Keese
Browse files
use paramfetch from rfsb release
parent
186d3b6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
15c87356
...
...
@@ -2,3 +2,5 @@
**/*.a
**/*.pc
.install-rust-fil-sector-builder
bin/
install-rust-fil-sector-builder
View file @
15c87356
...
...
@@ -13,6 +13,9 @@ if download_release_tarball tarball_path "${subm_dir}"; then
tmp_dir
=
$(
mktemp
-d
)
tar
-C
"
$tmp_dir
"
-xzf
"
$tarball_path
"
mkdir
-p
./bin
cp
"
${
tmp_dir
}
/bin/paramfetch"
./bin/
cp
"
${
tmp_dir
}
/include/sector_builder_ffi.h"
.
cp
"
${
tmp_dir
}
/lib/libsector_builder_ffi.a"
.
cp
"
${
tmp_dir
}
/lib/pkgconfig/sector_builder_ffi.pc"
.
...
...
@@ -26,4 +29,13 @@ else
find
"
${
subm_dir
}
"
-type
f
-name
sector_builder_ffi.h
-exec
cp
--
"{}"
.
\;
find
"
${
subm_dir
}
"
-type
f
-name
libsector_builder_ffi.a
-exec
cp
--
"{}"
.
\;
find
"
${
subm_dir
}
"
-type
f
-name
sector_builder_ffi.pc
-exec
cp
--
"{}"
.
\;
# TODO https://github.com/filecoin-project/rust-fil-sector-builder/issues/39
FP_VERSION
=
$(
cat
${
subm_dir
}
/Cargo.lock |
grep
'name = "filecoin-proofs"'
-A1
|
tail
-n1
|
cut
-d
' '
-f3
|
tr
-d
'"'
)
pushd
${
subm_dir
}
cargo
install
--version
$FP_VERSION
filecoin-proofs
--force
--root
..
--bin
paramfetch
||
true
popd
fi
rust-fil-sector-builder
@
604b4876
Compare
d92eeafb
...
604b4876
Subproject commit
d92eeafbd7904ebf596b2b6b2b6a2e577f92f567
Subproject commit
604b487673fa52744218abbe45972c1ee0b8d8cb
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment