blob: 8ade916872b1ed3c5e5d9eb988b6e06905807b59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|