#!/bin/bash

SRC=*.scm

cat lib.h

echo "// Generated from scheme source."
echo "#ifdef LISP_IMPLEMENTATION"

for FILE in $SRC
do
    echo "static const char* lib_$(basename $FILE .scm)_src_ = "
    cat $FILE | ./text2c.sh 
    echo ";"
    echo ""
done

cat lib.c

echo "#endif"
