Cleanup cryptest-autotools.sh script

pull/696/head
Jeffrey Walton 2018-07-28 10:57:53 -04:00
parent 5cc3f72d33
commit 4066d70731
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 20 deletions

View File

@ -43,21 +43,6 @@ if ! wget --no-check-certificate https://raw.githubusercontent.com/noloader/cryp
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi fi
# Convert as necessary
#if [[ ! -z $(command -v dos2unix) ]]; then
# dos2unix Makefile.am configure.ac libcryptopp.pc.in
#fi
# Trim trailing whitespace
#if [[ ! -z $(command -v "$SED") ]]; then
# "$SED" -e's/[[:space:]]*$//' Makefile.am > Makefile.am.fixed
# "$SED" -e's/[[:space:]]*$//' configure.ac > configure.ac.fixed
# "$SED" -e's/[[:space:]]*$//' libcryptopp.pc.in > libcryptopp.pc.in.fixed
# mv Makefile.am.fixed Makefile.am
# mv configure.ac.fixed configure.ac
# mv libcryptopp.pc.in.fixed libcryptopp.pc.in
#fi
# Run autoreconf twice on failure. Also see # Run autoreconf twice on failure. Also see
# https://github.com/tracebox/tracebox/issues/57 # https://github.com/tracebox/tracebox/issues/57
@ -67,12 +52,9 @@ if [[ ! -z $(command -v autoupdate) ]]; then
autoupdate autoupdate
fi fi
if [[ ! -z $(command -v libtoolize) ]]; then
libtoolize
fi
if ! autoreconf -vfi --warnings=all; then if ! autoreconf -vfi --warnings=all; then
if ! autoreconf -vfi; then echo "autoreconf failed, running again."
if ! autoreconf -fi; then
echo "autoreconf failed" echo "autoreconf failed"
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi fi