From f47066a7c2f53796fb252dc187cdcf77834a1157 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 11 Jun 2019 22:50:18 -0700 Subject: . --- subx/dgen | 28 ---------------------------- subx/drun | 22 ---------------------- subx/gen | 28 ---------------------------- subx/run | 22 ---------------------- 4 files changed, 100 deletions(-) delete mode 100755 subx/dgen delete mode 100755 subx/drun delete mode 100755 subx/gen delete mode 100755 subx/run (limited to 'subx') 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 " - 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 diff --git a/subx/drun b/subx/drun deleted file mode 100755 index 71b2f0e0..00000000 --- a/subx/drun +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env zsh -# Run commonly-used SubX programs using the SubX VM in 'debug mode'. - -if [ $# -eq 0 ] -then - echo "Usage: $0 " - echo - echo "Naming convention: Binaries starting with 'ex' will be assumed to live in examples/" - echo "Other binaries will be assumed to live in apps/" - exit 1 -fi - -case $1 in - ex*) - ./subx --debug --trace run examples/$* - exit $? - ;; - *) - ./subx --debug --trace run apps/$* - exit $? - ;; -esac 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 " - 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 diff --git a/subx/run b/subx/run deleted file mode 100755 index 99de0777..00000000 --- a/subx/run +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env zsh -# Run commonly-used SubX programs using the SubX VM. - -if [ $# -eq 0 ] -then - echo "Usage: $0 " - echo - echo "Naming convention: Binaries starting with 'ex' will be assumed to live in examples/" - echo "Other binaries will be assumed to live in apps/" - exit 1 -fi - -case $1 in - ex*) - ./subx run examples/$* - exit $? - ;; - *) - ./subx run apps/$* - exit $? - ;; -esac -- cgit 1.4.1-2-gfad0