#!/bin/sh # must be run from this directory guile=${GUILE-../../libguile/guile} if [ -x $guile ] ; then : else echo could not find guile interpreter. echo '(are you running this script from' `dirname $0` '?)' echo GUILE env var: ${GUILE-not set} exit 1 fi if test "X$srcdir" = X; then srcdir=. fi set -e # # simple-hello.scm # $guile -s $srcdir/simple-hello.scm > TMP cat < TMP echo "Hello, World!" | diff -u - TMP rm -f TMP $guile -s $srcdir/hello --version > TMP echo "hello 0.0.1" | diff -u - TMP rm -f TMP $guile -s $srcdir/hello --help > TMP cat <