From 741d25282274e59c785b9cbee23cefff3d2721a2 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 15 Feb 2018 21:24:24 -0800 Subject: 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. --- pkg/git/fetch.rc | 17 ----------------- pkg/git/fetch.sh | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 17 deletions(-) delete mode 100644 pkg/git/fetch.rc create mode 100644 pkg/git/fetch.sh (limited to 'pkg/git') diff --git a/pkg/git/fetch.rc b/pkg/git/fetch.rc deleted file mode 100644 index bec188d5..00000000 --- a/pkg/git/fetch.rc +++ /dev/null @@ -1,17 +0,0 @@ -flag e + - -@ . ./scripts/fetch-git.rc $* - -cd $1 -shift - -if([ -e src/man ]) - rm -rf src/man - -if(! sha256sum -c sha256 >[2]/dev/null) { - curl -L -O -K url - sha256sum -c sha256 -} - -archive=`{awk '{print $2}' sha256} -xzcat $archive | pax -r -s ',^\.,src/man,' diff --git a/pkg/git/fetch.sh b/pkg/git/fetch.sh new file mode 100644 index 00000000..289daf1f --- /dev/null +++ b/pkg/git/fetch.sh @@ -0,0 +1,18 @@ +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