bootstrap.sh (571B)
1 #!/bin/bash 2 3 set -eu 4 test "${DEBUG:-}" && set -x 5 6 declare -r SCRIPTS_DIR=$(dirname "$(realpath "$0")") 7 . "${SCRIPTS_DIR}"/settings 8 9 mkdir -p "${TOOLS_DIR}"/install "${WWW_DIR}" 10 cd "${TOOLS_DIR}" 11 12 ( 13 git clone https://github.com/libgit2/libgit2 14 mkdir libgit2/build 15 cd libgit2/build 16 cmake3 .. 17 cmake3 --build . 18 cmake3 --install . --prefix "${TOOLS_DIR}"/install 19 ) 20 21 ( 22 git clone git://git.codemadness.org/stagit 23 . "${SCRIPTS_DIR}"/tools.env 24 cd stagit 25 make 26 make install PREFIX="${TOOLS_DIR}"/install 27 cp *.{css,png} "${WWW_DIR}" 28 )