why use random numbers for client ids at all
[8sync.git] / demos / run-demo.sh
1 #!/bin/sh
2
3 # 8sync --- Asynchronous programming for Guile
4 # Copyright (C) 2015 Christopher Allan Webber <cwebber@dustycloud.org>
5 #
6 # This file is part of 8sync.
7 #
8 # 8sync is free software: you can redistribute it and/or modify it
9 # under the terms of the GNU Lesser General Public License as
10 # published by the Free Software Foundation, either version 3 of the
11 # License, or (at your option) any later version.
12 #
13 # 8sync is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with 8sync.  If not, see <http://www.gnu.org/licenses/>.
20
21 # This script lets you run demos in this directory no matter where
22 # `guile' is installed on your system.
23
24 SCRIPTNAME=$1
25 shift
26 ARGS=$@
27
28 env guile -l $SCRIPTNAME -e main -- $ARGS