mirror of
https://github.com/oasislinux/oasis.git
synced 2026-02-05 11:33:57 +01:00
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.
19 lines
267 B
Bash
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,'
|