#!/bin/sh

# Quick install (make sure you have the writing rights in the Gambit-C
# installation directory:
#
# lynx --source http://www.iro.umontreal.ca/~germaing/srfi-1.sh | sh

cd `gsi -e '(display (path-expand "~~"))'`
echo "Fetching SRFI-1..."
wget http://www.iro.umontreal.ca/~germaing/srfi-1.scm 
echo "Compiling SRFI-1..."
gsc -dynamic srfi-1.scm
echo "Adding SRFI-1 to your gambcext.scm..."
touch gambcext.scm
echo "(load \"~~/srfi-1\")" >> gambcext.scm
echo "Done!"

