Mercurial > hg > cdb
comparison choose.sh @ 0:2cb46628feec
from cdb-0.75 per http://cr.yp.to/cdb.html,
retrieved 2025-01-03,
contents appear to have been create on 2000-02-19
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Wed, 29 Jan 2025 10:50:34 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:2cb46628feec |
|---|---|
| 1 | |
| 2 result="$4" | |
| 3 | |
| 4 case "$1" in | |
| 5 *c*) ./compile $2.c >/dev/null 2>&1 || result="$3" ;; | |
| 6 esac | |
| 7 | |
| 8 case "$1" in | |
| 9 *l*) ./load $2 >/dev/null 2>&1 || result="$3" ;; | |
| 10 esac | |
| 11 | |
| 12 case "$1" in | |
| 13 *r*) ./$2 >/dev/null 2>&1 || result="$3" ;; | |
| 14 esac | |
| 15 | |
| 16 rm -f $2.o $2 | |
| 17 | |
| 18 exec cat "$result" |
