SHELL = /bin/sh

robust_scripts = jabbrevs jbrowser jdoc jedit jmore jprefs

toy_scripts = jcalendar jhotlist jlaunchpad jmsgs jpeople jperson

test_scripts = jnewbrowser

old_scripts = jhelp

#scripts = $(robust_scripts) $(old_scripts)
scripts = $(toy_scripts) $(test_scripts)

all: $(scripts)

$(scripts): boiler_header.tcl sedfile
	./sedfile $@ > $@.new
	mv $@.new $@
	chmod 755 $@

checkin: timestamp
	touch checkin
	for i in $(scripts); \
	do \
	sed -n 2p $$i > $$i.txt; \
	ci -l -f "-m`date`" -t$$i.txt ../../.RCS-jstools/bin/$$i,v; \
	rm $$i.txt; \
	done
	touch timestamp

timestamp:
	touch timestamp

