Skip to content

Commit

Permalink
Fix version fetch using make_release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
neomilium committed Jan 15, 2013
1 parent 6b5cd55 commit 085fb60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 085fb60

Please sign in to comment.