Commit c465e29c authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[ADD] - added pyclewn startup script for debugging walnut in VIM (the only true text editor).

parent fdfe04b5
#!/bin/sh
# This script allows you to use PyClewn (Vim GDB integration) with walnut.
# get path of this script
BINDIR=`dirname "$0"`
SRCDIR=$BINDIR # we assume this. We test lateron whether this
# we assume that your source dir is two or tree levels up. Setting the working directory to the source dir
# eases file browsing vim later
if [ -d "$BINDIR/../../src" ]; then
SRCDIR="$BINDIR/../../src"
else
if [ -d "$BINDIR/../../../src" ]; then
SRCDIR="$BINDIR/../../../src"
else
echo "Could not find source dir." # this is not really critical.
fi
fi
# run walnut
pyclewn -c "-c \"cd $SRCDIR\"" -a $BINDIR/walnut "$*"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment