summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-19 23:00:22 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-19 23:00:22 (GMT)
commit7f22d166316e4b85407272aa0045cfbb87f8845b (patch)
tree8635bea618c1bc43acb58c016ab2ad7b202860c7 /tools
parent59f59f2fde4702b7a68d210725e577c6ec838c51 (diff)
downloadmxe-7f22d166316e4b85407272aa0045cfbb87f8845b.zip
mxe-7f22d166316e4b85407272aa0045cfbb87f8845b.tar.gz
mxe-7f22d166316e4b85407272aa0045cfbb87f8845b.tar.bz2
update-config-guess: fix typo
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update-config-guess7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/update-config-guess b/tools/update-config-guess
index 5b9dcd4..931ba43 100755
--- a/tools/update-config-guess
+++ b/tools/update-config-guess
@@ -2,7 +2,7 @@
# This file is part of MXE.
# See index.html for further information.
#
-# Script to automatically update GNU Make Standard Library
+# Script to automatically update config.guess
# (http://gmsl.sourceforge.net/)
clean(){
@@ -27,11 +27,15 @@ current_version=$(grep 'timestamp.*=' 'ext/config.guess' 2>/dev/null | \
head -1 | cut -d'=' -f2 | $SED -e 's/^ //' -e 's/ *$//' )
clean
+
# Fetch latest config.guess from Savannah Git
$WGET -q -O tmp-config-guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
+
# Latest config.guess timestamp
latest_version=$(grep 'timestamp.*=' 'tmp-config-guess' | head -1 | \
head -1 | cut -d'=' -f2 | $SED -e 's/^ //' -e 's/ *$//')
+
+# Compare versions
if [ "$current_version" != "$latest_version" ]; then
echo "New version found: $current_version --> $latest_version"
rm -f ext/config.guess
@@ -40,4 +44,5 @@ if [ "$current_version" != "$latest_version" ]; then
else
echo "No new version available: $current_version"
fi
+
clean