Just ran into first issue from using the portable /bin/sh rather than a
modern shell:
  https://stackoverflow.com/questions/15744421/read-command-doesnt-wait-for-input

Turn on errexit everywhere.
This commit is contained in:
Kartik K. Agaram 2018-02-20 01:36:02 -08:00
parent cd11138824
commit ba838feae9
11 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
./clean top-level
./build --until $1 && ./mu_bin test

1
clean
View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
set -v
rm -rf mu.cc core.mu mu_bin* *_list .build

View File

@ -4,5 +4,6 @@
# I usually run this through an alias local to this repo:
# $ git config alias.ll '!./git_log_filtered'
# $ git ll --stat
set -e
git log $* -- . ":(exclude)html"

View File

@ -1,3 +1,4 @@
#!/bin/sh
set -e
c++ -g linkify.cc -o linkify

View File

@ -1,2 +1,4 @@
#!/bin/sh
set -e
rm -rf linkify *.dSYM

1
mu
View File

@ -1,5 +1,6 @@
#!/bin/sh
# Run interpreter, first compiling if necessary.
set -e
./build && ./mu_bin "$@"

View File

@ -1,6 +1,7 @@
#!/bin/sh
# Hacky little helper called from edit/ and sandbox/ apps to save a snapshot
# of lesson/ using git.
set -e
test -d lesson/.git || exit 0 # give up if it's not a git repo

View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
./clean top-level # ignore subsidiary tools like tangle and cleave
./build --until $1 && ./subx_bin test

View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
set -v
rm -rf subx.cc subx_bin* *_list

View File

@ -1,4 +1,5 @@
#!/bin/sh
# Run SubX VM, first compiling if necessary.
set -e
./build && ./subx_bin "$@"

View File

@ -13,6 +13,7 @@
# test_layers x y
# Test all layers for a specific app:
# test_layers app
set -e
if [[ $1 == one-off ]]
then