From 743287e62a0254f505c8907867475f3a5a2d9b98 Mon Sep 17 00:00:00 2001 From: Abderrahim Kitouni Date: Mon, 13 Aug 2018 18:55:20 +0100 Subject: [PATCH] build: Correctly quote square brackets in regular expression Square brackets are quotation characters in autoconf, and need to be further quoted to appear in the resulting script. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 366f52d54..730c72d7b 100644 --- a/configure.ac +++ b/configure.ac @@ -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) -- 2.47.2