#! /bin/sh

FILTER_LIST=model_list
CUPSWRAPPER=./cupswrapper.tmp

for FILTER_NAME in `cat $FILTER_LIST`
do
#	echo $FILTER_NAME
	PRINTER_FILE_NAME=`echo $FILTER_NAME | tr '[A-Z]' '[a-z]'`

#	cupswrapper file
	FuncFILE=`echo cupswrapper${PRINTER_FILE_NAME}`
	cat $CUPSWRAPPER | eval sed -e 's/PRINTER_NAME/"\"$FILTER_NAME\""/' > $FuncFILE
	chmod +x $FuncFILE
	echo Create $FuncFILE !!

done
