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. --- scripts/commit.rc | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 scripts/commit.rc (limited to 'scripts/commit.rc') diff --git a/scripts/commit.rc b/scripts/commit.rc deleted file mode 100644 index 870d7ab3..00000000 --- a/scripts/commit.rc +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/rc - -flag e + - -repo=$1 -branch=$2 -tag=$3 -out=$4 - -fn checkstatus {} - -if(git -C $repo show-ref -q --verify refs/heads/$branch) - parent=(-p $branch) -if not parent=() - -message='oasis built by '`{id -un} -commit=`{echo $message | git -C $repo commit-tree $tag $parent} ; checkstatus -git -C $repo update-ref refs/heads/$branch $commit -echo $commit > $out.tmp && mv $out.tmp $out -- cgit v1.2.3