Add Self programming language

This commit is contained in:
Chris Double
2014-07-04 16:09:57 +12:00
parent 8cf2cd5d11
commit c6c889b4ea
3 changed files with 64 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#! /usr/bin/env bash
export SELF_HOME="$HOME/.local/share/self"
if [ -n "$XDG_DATA_HOME" ]
then export SELF_HOME="$XDG_DATA_HOME/self"
fi
if [ ! -d $SELF_HOME ]; then
mkdir -p $SELF_HOME
fi
if [ ! -d $SELF_HOME/objects ]; then
mkdir -p $SELF_HOME/objects
cp -r $SELF_ROOT/share/self/objects/* $SELF_HOME/objects
chmod -R +w $SELF_HOME/objects
fi
exec $SELF_ROOT/bin/Self.wrapped "$@"