mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
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
39 lines
890 B
Bash
Executable file
39 lines
890 B
Bash
Executable file
#!/bin/sh
|
|
|
|
LANG=C
|
|
export LANG
|
|
LC_COLLATE=C
|
|
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 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 [:lower:] [:upper:]`
|
|
template=`echo $Template | tr [:upper:] [:lower:]`
|
|
|
|
# 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
|
|
|