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
4c9919a1
Unverified
Commit
4c9919a1
authored
Nov 26, 2019
by
Erin Swenson-Healey
Committed by
GitHub
Nov 26, 2019
Browse files
SB_BUILD_FROM_SOURCE=1 triggers local build (#59)
parent
0aeff9f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
install-rust-fil-sector-builder
View file @
4c9919a1
...
...
@@ -9,7 +9,7 @@ subm_dir="rust-fil-sector-builder"
git submodule update
--init
--recursive
$subm_dir
if
download_release_tarball tarball_path
"
${
subm_dir
}
"
;
then
if
[
"
${
SB_BUILD_FROM_SOURCE
}
"
!=
"1"
]
&&
download_release_tarball tarball_path
"
${
subm_dir
}
"
;
then
tmp_dir
=
$(
mktemp
-d
)
tar
-C
"
$tmp_dir
"
-xzf
"
$tarball_path
"
...
...
@@ -18,8 +18,10 @@ if download_release_tarball tarball_path "${subm_dir}"; then
cp
"
${
tmp_dir
}
/lib/pkgconfig/sector_builder_ffi.pc"
.
cp
"
${
tmp_dir
}
/bin/paramcache"
.
(>
&2
echo
"successfully installed prebuilt libsector_builder"
)
else
(>
&2
echo
"
failed to find or obtain precompiled assets for
${
subm_dir
}
- falling back to local build
"
)
(>
&2
echo
"
building libsector_builder from local sources (dir =
${
subm_dir
}
)
"
)
build_from_source
"
${
subm_dir
}
"
mkdir
-p
include
...
...
@@ -45,4 +47,6 @@ else
fi
(>
&2
echo
"WARNING: paramcache was not installed - you may wish to 'cargo install' it"
)
(>
&2
echo
"successfully built and installed libsector_builder from source"
)
fi
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