#!/bin/sh

## Create a collection of PLAYS from a bunch of standalone PLAY
## documents in the shakespeare collection.

## This is very crude and depends upon the XML and DTD specs being
## the first two lines in the files.

tail +3 $*  |
	grep -v '==>' |
	( echo '<?xml version="1.0"?>' ; 
	  echo '<!DOCTYPE PLAYS SYSTEM "plays.dtd">'
	  echo '<PLAYS>' ;
	  cat ;
	  echo '</PLAYS>' )
