diff options
author | David Schleef <ds@schleef.org> | 2004-01-07 21:33:01 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-01-07 21:33:01 +0000 |
commit | 6f0026286d24e2134681248d2e313934d0b4782f (patch) | |
tree | 367095c7ee64b902dd6a0b795f66521752972d4c /gst/videofilter | |
parent | f3961006ac9718be34ecdf9cd00d69c2aff4e510 (diff) |
Fix the regular expressions and quote properly
Original commit message from CVS:
Fix the regular expressions and quote properly
Diffstat (limited to 'gst/videofilter')
-rwxr-xr-x | gst/videofilter/make_filter | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gst/videofilter/make_filter b/gst/videofilter/make_filter index 481f8ede..5eec96a1 100755 --- a/gst/videofilter/make_filter +++ b/gst/videofilter/make_filter @@ -14,19 +14,22 @@ if test x"$2" = x ; then srcfile="gstvideotemplate.c" 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) # remember to break up the Id: in the line below 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/\$I[d]: \(.*\)\$/\1/g" \ - -e "s/SOURCEFILE/gstvideotemplate\.c/g" \ - -e "s/MAKEFILTERVERSION/$id/g" \ - $srcfile >gst$template.c + -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 |