mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
Fix the regular expressions and quote properly
Original commit message from CVS: Fix the regular expressions and quote properly
This commit is contained in:
parent
f3961006ac
commit
6f0026286d
1 changed files with 9 additions and 6 deletions
|
@ -14,19 +14,22 @@ if test x"$2" = x ; then
|
||||||
srcfile="gstvideotemplate.c"
|
srcfile="gstvideotemplate.c"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
id=$(echo '$Id$I[d]: \(.*\)\$/\1/g" )
|
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)
|
||||||
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
|
# remember to break up the Id: in the line below
|
||||||
sed \
|
sed \
|
||||||
-e "s/gstvideotemplate\.c/SOURCEFILE/g" \
|
-e 's/gstvideotemplate\.c/SOURCEFILE/g' \
|
||||||
-e "s/Videotemplate/$Template/g" \
|
-e "s/Videotemplate/$Template/g" \
|
||||||
-e "s/videotemplate/$template/g" \
|
-e "s/videotemplate/$template/g" \
|
||||||
-e "s/VIDEOTEMPLATE/$TEMPLATE/g" \
|
-e "s/VIDEOTEMPLATE/$TEMPLATE/g" \
|
||||||
-e "s/\$I[d]: \(.*\)\$/\1/g" \
|
-e 's/\$I[d]: \([^$]*\)\$/\1/g' \
|
||||||
-e "s/SOURCEFILE/gstvideotemplate\.c/g" \
|
-e 's/SOURCEFILE/gstvideotemplate\.c/g' \
|
||||||
-e "s/MAKEFILTERVERSION/$id/g" \
|
-e "s%MAKEFILTERVERSION%$id%g" \
|
||||||
$srcfile >gst$template.c
|
$srcfile >gst$template.c.tmp && mv gst$template.c.tmp gst$template.c
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue