summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSylvain Etienne <pudbou@gmail.com>2014-10-23 15:39:37 +0200
committerTim-Philipp Müller <tim@centricular.com>2015-10-31 12:29:34 +0000
commit5afa1af9cf776a9ddf705ab3283c0df2d71e5ef7 (patch)
tree310935d0425fa4648082eb64568aedf807429323 /m4
parent580d6b097fe9c7dd3e5f18329683e8e13b948e1f (diff)
m4: grep's RE patterns conflict with M4 quotes
https://bugzilla.gnome.org/show_bug.cgi?id=739079
Diffstat (limited to 'm4')
-rw-r--r--m4/gst-package-release-datetime.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/gst-package-release-datetime.m4 b/m4/gst-package-release-datetime.m4
index 187915b..7f14c4d 100644
--- a/m4/gst-package-release-datetime.m4
+++ b/m4/gst-package-release-datetime.m4
@@ -33,7 +33,9 @@ AC_DEFUN([AG_GST_SET_PACKAGE_RELEASE_DATETIME],
elif test "x$1" = "xyes"; then
dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([yes], [YYYY-MM-DD])
dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([yes], [DOAP-FILE], [RELEASE-VERSION])
+changequote(<<, >>)dnl
if ( echo $1 | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
+changequote([, ])dnl
GST_PACKAGE_RELEASE_DATETIME=$1
else
dnl we assume the .doap file contains the date as YYYY-MM-DD
@@ -47,7 +49,9 @@ AC_DEFUN([AG_GST_SET_PACKAGE_RELEASE_DATETIME],
fi
fi
dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([YYYY-MM-DD])
+changequote(<<, >>)dnl
elif ( echo $1 | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
+changequote([, ])dnl
GST_PACKAGE_RELEASE_DATETIME=$1
else
AC_MSG_WARN([SET_PACKAGE_RELEASE_DATETIME: invalid first argument])