From 085fb60777697cdaf1724610fe2328115fc120a6 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Tue, 15 Jan 2013 18:16:56 +0100 Subject: [PATCH] Fix version fetch using make_release.sh --- make_release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make_release.sh b/make_release.sh index 662c284..64d33eb 100755 --- a/make_release.sh +++ b/make_release.sh @@ -4,8 +4,9 @@ set -e # Retrieve libnfc version from configure.ac -LIBNFC_VERSION=$(grep AC_INIT configure.ac | sed 's/^.*(\(.*\))/\1/g' | awk -F', ' '{ print $2 }') +LIBNFC_VERSION=$(grep AC_INIT configure.ac | sed 's/^.*\[libnfc\],\[\(.*\)\],\[.*/\1/g') +echo "=== Building release archive for libnfc $LIBNFC_VERSION ===" # Easiest part: GNU/linux, BSD and other POSIX systems. LIBNFC_AUTOTOOLS_ARCHIVE=libnfc-$LIBNFC_VERSION.tar.gz @@ -30,6 +31,7 @@ else fi # Documentation part +echo "=== Building documentation archive for libnfc $LIBNFC_VERSION ===" LIBNFC_DOC_DIR=libnfc-doc-$LIBNFC_VERSION LIBNFC_DOC_ARCHIVE=$LIBNFC_DOC_DIR.zip