#!/bin/sh
# command to create S_load_time.c file
# that contains the date that this version of S-PLUS was loaded
# along with a structure to allow initialiation of all hash tables
# from included chapters

# syntax Splus BOOTSTRAP libraries

(
set old $*	# ld_init is the init file for core S-PLUS
echo '#include "S_engine.h"'
echo "extern s_symbol_address old_init[];"
echo "s_symbol_address *init_entries[] = {"
for i
do
	echo "`basename $i`_init,"
done
echo "0};"

date|sed 's/.*/char load_time[] ="S &";/'
) > S_load_time.c
