diff options
author | Felix Lange <fjl@twurst.com> | 2011-10-14 05:45:42 +0200 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2011-10-14 05:45:42 +0200 |
commit | bd5145368593e09460d4461256ee4f934b2ebf26 (patch) | |
tree | 471852782d61d64bede27d67552eb79af0a598aa /bin/ermacs | |
parent | 90640c1aed302fd83a500bb9ccdfb6cf7b481112 (diff) | |
download | ermacs-fork-bd5145368593e09460d4461256ee4f934b2ebf26.tar.gz |
remove cruft
cruft includes:
- module header comments (yikes..)
- author attributes (sorry luke)
- old guard tests
Diffstat (limited to 'bin/ermacs')
-rwxr-xr-x | bin/ermacs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/ermacs b/bin/ermacs new file mode 100755 index 0000000..8ade916 --- /dev/null +++ b/bin/ermacs @@ -0,0 +1,26 @@ +#!/bin/sh + +START_CWD=`pwd -P` + +SCRIPT=$0 +cd `dirname $SCRIPT` +SCRIPT=`basename $SCRIPT` +# Iterate down a (possible) chain of symlinks +while [ -L "$SCRIPT" ]; do + SCRIPT=`readlink $SCRIPT` + cd `dirname $SCRIPT` + SCRIPT=`basename $SCRIPT` +done + +PHYS_DIR=`pwd -P` +EBIN="$PHYS_DIR/../ebin" +MODS_EBIN="$PHYS_DIR/../mods/ebin" + +cd $START_CWD + +${ERL-erl} erl -pa ${EBIN}/ebin -pa ${MODS_EBIN} -noinput -noshell -nouser \ + -run edit start $* \ + 2>/tmp/ermacs-misc.log + +# How do I get sh to run this in response to SIGINT? +stty sane |