if test ! -r Smakefile; then echo `pwd` is not a chapter; exit 1; fi
for i
do
	if test ! -s $i; then echo $i is not ready for INSTALL; continue; fi
	egrep "(^| )$i(:| .*:)" Smakefile | sed "s/:.*//" >/tmp/ft.$$
	if test ! -s /tmp/ft.$$; then echo $i is not on Smakefile; continue; fi
	( cd $X; mv `cat /tmp/ft.$$` $BKUP/x )
	mv `cat /tmp/ft.$$` $X
	echo `cat /tmp/ft.$$` installed
	rm /tmp/ft.$$
done
