History

Shellology

cf. 9a9f97712a46b62a0199490d766e3a3397e3b7ff

malc committed 5 years ago

Commit fe3b1751 parent ff951291 file · +5 −5Browse files

Unified · Split

build.bash+5−5
@@ -3,13 +3,13 @@ set -eu · 2 unmodified lines
3 3
4now() { date +%s; }4now() { date +%s; }
5S=$(now)5S=$(now)
6vecho() { ${vecho-:} "$*"; }6vecho() { ${vecho-:} "$@"; }
7executable_p() { command -v "$1" >/dev/null 2>&1; }7executable_p() { command -v "$1" >/dev/null 2>&1; }
8dgst='cksum $* | while read d _; do printf $d; done'8dgst='cksum "$@" | while read d _; do printf $d; done'
9! executable_p b3sum || dgst='b3sum --no-names $*'9! executable_p b3sum || dgst='b3sum --no-names "$@"'
10executable_p realpath || realpath() (cd "$1" &>/dev/null; pwd -P)10executable_p realpath || realpath() (cd "$1" &>/dev/null; pwd -P)
11eval "digest() { $dgst; } 2>/dev/null"11eval "digest() { $dgst; } 2>/dev/null"
12die() { echo "$*" >&2; exit 111; }12die() { echo "$@" >&2; exit 111; }
13trap 'echo "$(test $? -eq 0 || echo "fail ")$(($(now) - $S)) sec"' EXIT13trap 'echo "$(test $? -eq 0 || echo "fail ")$(($(now) - $S)) sec"' EXIT
14 14
15darwin=false15darwin=false
@@ -142,7 +142,7 @@ cvers=$($ccomp --version | { read v; echo $v; }) · 126 unmodified lines
142 142
143bocaml1() {143bocaml1() {
144 grep -q "$3" $outd/ordered || {144 grep -q "$3" $outd/ordered || {
145 bocaml2 $*145 bocaml2 "$@"
146 echo "$3" >>"$outd/ordered"146 echo "$3" >>"$outd/ordered"
147 }147 }
148}148}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t