#!/bin/sh
rm -f gconfig.h gconfig.ps _temp_
touch gconfig.h gconfig.ps _temp_
export p q; p=d; q=device
for dev in $*
do
	if ( test ${dev} = + )
	then export p q; p=f; q=init;
	else {
		echo ${p}\(gs_${dev}_${q}\) >>gconfig.h
		if ( test ${p} = f )
		then echo \(gs_${dev}.ps\) >>gconfig.ps
		else cat ${dev}.dev >>_temp_
		fi;
	} fi
done
sort <_temp_ | uniq >gconfig.tr
rm -f _temp_
