-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatic build dependency installation script.
- Loading branch information
1 parent
6e11132
commit f5ae626
Showing
5 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
packages="libpq-dev libssl-dev cmake" | ||
|
||
if command -v sudo >/dev/null | ||
then sudo=sudo | ||
else sudo= | ||
fi | ||
|
||
if command -v apt >/dev/null | ||
then apt='apt' | ||
elif command -v apt-get >/dev/null | ||
then apt='apt-get' | ||
else echo "Warning: apt not found! | ||
You're probably using a non-Debian-based distribution. To build JJS you must install the development packages of libpq and OpenSSL." >&2 | ||
fi | ||
|
||
if [ "x$apt" != x ] | ||
then $sudo $apt update | ||
# shellcheck disable=SC2086 | ||
$sudo $apt install $packages | ||
fi | ||
|
||
cargo install cbindgen -Z install-upgrade | ||
cargo install mdbook -Z install-upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
PHONY: all | ||
all: | ||
+bash ___SCRIPT_PATH___ | ||
deps: | ||
+bash ___DEPS_SCRIPT_PATH___ |