gstreamer/gst-libs/gst/audio/make_filter
David Schleef 3e84dfa539 gconf/Makefile.am: Fix for non-GNU make
Original commit message from CVS:
* gconf/Makefile.am: Fix for non-GNU make
* gst-libs/gst/Makefile.am: Change directory order to handle
GstPlay linking with gstinterfaces
* gst-libs/gst/audio/make_filter: make use of tr portable
* gst-libs/gst/play/Makefile.am: Add intended \
* gst-libs/gst/xwindowlistener/xwindowlistener.c:
(gst_xwin_set_clips): Switch to ISO variadic macro. Use a
function prototype instead of void *.
* gst/ffmpegcolorspace/gstffmpegcodecmap.c: Switch to ISO variadic
macro.
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcolorspace_chain): wrap NULL in GST_ELEMENT_ERROR call
* gst/videofilter/make_filter: make use of tr portable
* pkgconfig/Makefile.am: Remove GNU extension in Makefile target
2004-04-19 22:51:57 +00:00

42 lines
975 B
Bash
Executable file

#!/bin/sh
LANG=C
LC_COLLATE=C
export LANG
export LC_COLLATE
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 GstAudiofilter.\n";
exit 1;
fi
if test x"$2" = x ; then
srcfile="gstaudiofiltertemplate.c"
fi
id=`echo '$Id$' | sed \
-e 's/\$I[d]: \([^$]*\)\$/\1/g'`
echo $id
TEMPLATE=`echo $Template | tr [:lower:] [:upper:]`
template=`echo $Template | tr [:upper:] [:lower:]`
echo TEMPLATE $TEMPLATE
echo template $template
# remember to break up the Id: in the line below
sed \
-e 's/gstaudiofiltertemplate\.c/SOURCEFILE/g' \
-e "s/AudiofilterTemplate/$Template/g" \
-e "s/audiofiltertemplate/$template/g" \
-e "s/VIDEOFILTERTEMPLATE/$TEMPLATE/g" \
-e 's/\$I[d]: \([^$]*\)\$/\1/g' \
-e 's/SOURCEFILE/gstaudiofiltertemplate\.c/g' \
-e "s%MAKEFILTERVERSION%$id%g" \
$srcfile >gst$template.c.tmp && mv gst$template.c.tmp gst$template.c