diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-06-11 22:50:18 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-06-11 22:50:18 -0700 |
commit | f47066a7c2f53796fb252dc187cdcf77834a1157 (patch) | |
tree | ccb74cb6085302465a59f89518bac06cc36d5d54 /subx/gen | |
parent | 6928eb9e44878d5ad076f80561ef8820bddc9e55 (diff) | |
download | mu-f47066a7c2f53796fb252dc187cdcf77834a1157.tar.gz |
.
Diffstat (limited to 'subx/gen')
-rwxr-xr-x | subx/gen | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/subx/gen b/subx/gen deleted file mode 100755 index 0acbe3d8..00000000 --- a/subx/gen +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# Little helper to quickly build SubX programs 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 translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'` - exit $? - ;; - *) - ./subx translate *.subx apps/$1.subx -o apps/`echo $1 |sed 's/\..*//'` - exit $? - ;; -esac |