Add ./run-demo.sh script
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Nov 2015 17:50:31 +0000 (11:50 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Nov 2015 17:50:31 +0000 (11:50 -0600)
This script lets you run demos in this directory no matter where
`guile' is installed on your system.

* demos/run-demo.sh: New file

demos/run-demo.sh [new file with mode: 0755]

diff --git a/demos/run-demo.sh b/demos/run-demo.sh
new file mode 100755 (executable)
index 0000000..3d07624
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# 8sync --- Asynchronous programming for Guile
+# Copyright (C) 2015 Christopher Allan Webber <cwebber@dustycloud.org>
+#
+# This file is part of 8sync.
+#
+# 8sync is free software: you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# 8sync is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with 8sync.  If not, see <http://www.gnu.org/licenses/>.
+
+# This script lets you run demos in this directory no matter where
+# `guile' is installed on your system.
+
+SCRIPTNAME=$1
+shift
+ARGS=$@
+
+env guile -l $SCRIPTNAME -e main -- $ARGS