gstreamer/gst/videofilter/make_filter
David Schleef 1e292a5bd3 ext/lcs/Makefile.am: Fix so that the lcs colorspace plugin doesn't conflict with the internal colorspace plugin.
Original commit message from CVS:
* ext/lcs/Makefile.am:  Fix so that the lcs colorspace plugin
doesn't conflict with the internal colorspace plugin.
* gst-libs/gst/audio/make_filter:  Use `` instead of $() to
satisfy the crappy-ass shell shipped by a certain vendor.
* gst/videofilter/make_filter: same (bug #135299)
2004-03-09 20:55:30 +00:00

35 lines
815 B
Bash
Executable file

#!/bin/sh
Template=$1;
srcfile=$2;
if test x"$1" = x ; then
echo "$0 Objectname [srcfile]\n";
echo " creates gstobjectname.{c,h} implementing GstObjectname,\n";
echo " subclassing GstVideofilter.\n";
exit 1;
fi
if test x"$2" = x ; then
srcfile="gstvideotemplate.c"
fi
id=`echo '$Id$' | sed \
-e 's/\$I[d]: \([^$]*\)\$/\1/g'`
echo $id
TEMPLATE=`echo $Template | tr a-z A-Z`
template=`echo $Template | tr A-Z a-z`
# remember to break up the Id: in the line below
sed \
-e 's/gstvideotemplate\.c/SOURCEFILE/g' \
-e "s/Videotemplate/$Template/g" \
-e "s/videotemplate/$template/g" \
-e "s/VIDEOTEMPLATE/$TEMPLATE/g" \
-e 's/\$I[d]: \([^$]*\)\$/\1/g' \
-e 's/SOURCEFILE/gstvideotemplate\.c/g' \
-e "s%MAKEFILTERVERSION%$id%g" \
$srcfile >gst$template.c.tmp && mv gst$template.c.tmp gst$template.c