Commit 5afa1af9 authored by Sylvain Etienne's avatar Sylvain Etienne Committed by Tim-Philipp Müller
Browse files

m4: grep's RE patterns conflict with M4 quotes

https://bugzilla.gnome.org/show_bug.cgi?id=739079
parent 580d6b09
......@@ -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])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment