Put versions of packages downloaded by scripts in variables to reduce duplication

This commit is contained in:
Kamil Śliwak
2021-09-24 16:29:14 +02:00
parent 55467c1cca
commit 67041fb37f
3 changed files with 28 additions and 19 deletions
+5 -3
View File
@@ -4,9 +4,11 @@ set -eu
TEMPDIR=$(mktemp -d)
(
cd "$TEMPDIR"
wget https://github.com/open-source-parsers/jsoncpp/archive/1.7.4.tar.gz
tar xvzf "1.7.4.tar.gz"
cd "jsoncpp-1.7.4"
jsoncpp_version="1.7.4"
jsoncpp_package="jsoncpp-${jsoncpp_version}.tar.gz"
wget -O "$jsoncpp_package" https://github.com/open-source-parsers/jsoncpp/archive/${jsoncpp_version}.tar.gz
tar xvzf "$jsoncpp_package"
cd "jsoncpp-${jsoncpp_version}"
mkdir -p build
cd build
cmake -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..