]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
build: Correctly quote square brackets in regular expression 743287e62a0254f505c8907867475f3a5a2d9b98
authorAbderrahim Kitouni <akitouni@gnome.org>
Mon, 13 Aug 2018 17:55:20 +0000 (18:55 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 13 Aug 2018 18:03:32 +0000 (20:03 +0200)
Square brackets are quotation characters in autoconf, and need to be
further quoted to appear in the resulting script.

configure.ac

index 366f52d5461ebebd4169f5b1bf6160940a151ce8..730c72d7b96f327ca905578b7aaca72d7f178739 100644 (file)
@@ -13,9 +13,9 @@ AM_MAINTAINER_MODE([enable])
 API_VERSION=0.42
 PACKAGE_SUFFIX="-$API_VERSION"
 
-VALA_MAJOR_VERSION=`echo $PACKAGE_VERSION | cut -d. -f1 | sed s/[a-zA-Z\-].*//g`
-VALA_MINOR_VERSION=`echo $PACKAGE_VERSION | cut -d. -f2 | sed s/[a-zA-Z\-].*//g`
-VALA_MICRO_VERSION=`echo $PACKAGE_VERSION | cut -d. -f3 | sed s/[a-zA-Z\-].*//g`
+VALA_MAJOR_VERSION=`echo $PACKAGE_VERSION | cut -d. -f1 | sed s/[[a-zA-Z\-]].*//g`
+VALA_MINOR_VERSION=`echo $PACKAGE_VERSION | cut -d. -f2 | sed s/[[a-zA-Z\-]].*//g`
+VALA_MICRO_VERSION=`echo $PACKAGE_VERSION | cut -d. -f3 | sed s/[[a-zA-Z\-]].*//g`
 AC_SUBST(VALA_MAJOR_VERSION)
 AC_SUBST(VALA_MINOR_VERSION)
 AC_SUBST(VALA_MICRO_VERSION)