Files
oasis-linux-mirror/pkg/git/fetch.sh
Michael Forney 741d252822 Port build scripts to POSIX shell
Since we are now using Lua to generate ninja files, use of rc in build scripts
seems unnecessary and adds an additional bootstrap dependency. None of them are
too fancy, so just port to POSIX sh instead.
2018-02-16 02:52:34 -08:00

19 lines
267 B
Bash

set -e
(. ./scripts/fetch-git.sh "$@")
cd "$1"
shift
if [ -e src/man ] ; then
rm -rf src/man
fi
if ! sha256sum -c sha256 2>/dev/null ; then
curl -L -O -K url
sha256sum -c sha256
fi
read -r checksum archive <sha256
xzcat "$archive" | pax -r -s ',^\.,src/man,'