Skip to content
Snippets Groups Projects
Commit 0feaf913 authored by Sergey Kosukhin's avatar Sergey Kosukhin Committed by Thomas Jahns
Browse files

release script: Honor the standard environment variable.

parent c2138298
No related branches found
No related tags found
No related merge requests found
......@@ -43,23 +43,22 @@ set -e
# this should guarantee reproducible results from automake runs
export PERL_HASH_SEED=0
if [[ -z "${libtoolize:-}" ]]; then
if [[ -z "${LIBTOOLIZE:-}" ]]; then
case $(uname -s) in
Darwin)
libtoolize=glibtoolize
LIBTOOLIZE=glibtoolize
if [[ -z "${SED+set}" ]] && command -v gsed >/dev/null; then
SED=gsed
fi
;;
*)
libtoolize=libtoolize
LIBTOOLIZE=libtoolize
;;
esac
# make sure autoreconf calls the same libtoolize:
export LIBTOOLIZE
fi
# make sure autoreconf calls the same libtoolize:
export LIBTOOLIZE=${libtoolize}
SED=${SED-sed}
if sed_version=$($SED --version 2>/dev/null) && [[ $sed_version = *GNU\ sed* ]]; then
sed_inplace_options=('-i')
......@@ -74,9 +73,9 @@ else
fi
autoreconf -i --force
$libtoolize --force --copy
libtoolversion=$($libtoolize --version \
| ${SED} -e 's/^'"${libtoolize##*/}"' \(([^)]*) \)\{0,1\}\([0-9.]*\)/\2/;q')
$LIBTOOLIZE --force --copy
libtoolversion=$($LIBTOOLIZE --version \
| ${SED} -e 's/^'"${LIBTOOLIZE##*/}"' \(([^)]*) \)\{0,1\}\([0-9.]*\)/\2/;q')
declare -a patches
case "$libtoolversion" in
(2.4.6|2.4.7)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment