diff options
author | Kartik Agaram <github@akkartik.com> | 2019-07-13 19:50:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-13 19:50:49 -0700 |
commit | c4aa819a5d651554b3a5cc52b67cac36889cada8 (patch) | |
tree | 328f7daeb3960d45cdbfa002f05fdc11617df0b4 /subx/dgen | |
parent | cdf85518dfb364d816e0db1448e20bf30b2b65f9 (diff) | |
parent | 7f23be0107af59f37a948151eefe9c4d39ddf96e (diff) | |
download | mu-c4aa819a5d651554b3a5cc52b67cac36889cada8.tar.gz |
Merge pull request #34 from akkartik/survey
SubX in SubX: computing addresses for labels
Diffstat (limited to 'subx/dgen')
-rwxr-xr-x | subx/dgen | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/subx/dgen b/subx/dgen deleted file mode 100755 index 1a5a8366..00000000 --- a/subx/dgen +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# Little helper to quickly build SubX programs in 'debug mode' from the commandline. -# Only works for programs in some standard places the repo knows about. - -if [ $# -eq 0 ] -then - echo "Usage: $0 <file root without subdirectory or .subx extension>" - echo - echo "Naming convention: Files starting with 'ex' will be assumed to live in examples/ and be self-contained." - echo "Other files will be assumed to live in apps/ and need the standard library." - exit 1 -fi - -# Build in debug mode since the common case at the moment is building small -# files. To override, calling scripts should do their own builds to ensure -# subx_bin is up to date. -export CFLAGS=-g - -case $1 in - ex*) - ./subx --debug translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'` - exit $? - ;; - *) - ./subx --debug translate *.subx apps/$1.subx -o apps/`echo $1 |sed 's/\..*//'` - exit $? - ;; -esac |