From bd5145368593e09460d4461256ee4f934b2ebf26 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 14 Oct 2011 05:45:42 +0200 Subject: remove cruft cruft includes: - module header comments (yikes..) - author attributes (sorry luke) - old guard tests --- bin/ermacs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 bin/ermacs (limited to 'bin') 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 -- cgit v1.2.3