6 if test x"$1" = x ; then
7 echo "$0 Objectname [srcfile]\n";
8 echo " creates gstobjectname.{c,h} implementing GstObjectname,\n";
9 echo " subclassing GstVideofilter.\n";
13 if test x"$2" = x ; then
14 srcfile="gstvideotemplate.c"
17 id=$(echo '$Id$' | sed \
18 -e 's/\$I[d]: \([^$]*\)\$/\1/g' \
22 TEMPLATE=$(echo $Template | tr a-z A-Z)
23 template=$(echo $Template | tr A-Z a-z)
25 # remember to break up the Id: in the line below
27 -e 's/gstvideotemplate\.c/SOURCEFILE/g' \
28 -e "s/Videotemplate/$Template/g" \
29 -e "s/videotemplate/$template/g" \
30 -e "s/VIDEOTEMPLATE/$TEMPLATE/g" \
31 -e 's/\$I[d]: \([^$]*\)\$/\1/g' \
32 -e 's/SOURCEFILE/gstvideotemplate\.c/g' \
33 -e "s%MAKEFILTERVERSION%$id%g" \
34 $srcfile >gst$template.c.tmp && mv gst$template.c.tmp gst$template.c