summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2011-12-12 17:48:51 +0000
committerAlon Levy <alevy@redhat.com>2012-01-13 18:11:58 +0200
commit64f4826b6d6918b81d336f8c4296dc6094067f64 (patch)
treefef0441ede7f2b7bffec4ebbc44402f362d2d323 /autogen.sh
parent8a36c625a64dee573c157256fe2a681a93a6aefe (diff)
downloadspice-64f4826b6d6918b81d336f8c4296dc6094067f64.tar.gz
spice-64f4826b6d6918b81d336f8c4296dc6094067f64.tar.xz
spice-64f4826b6d6918b81d336f8c4296dc6094067f64.zip
Death to all TABs
Source files should all use spaces instead of tabs for indentation. Update the few files not already in compliance
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh42
1 files changed, 21 insertions, 21 deletions
diff --git a/autogen.sh b/autogen.sh
index 2619803e..217cc22e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -93,35 +93,35 @@ version_check() {
vc_checkprog=`eval echo "\\$$vc_variable"`
if [ -n "$vc_checkprog" ]; then
- printbold "using $vc_checkprog for $vc_package"
- return 0
+ printbold "using $vc_checkprog for $vc_package"
+ return 0
fi
printbold "checking for $vc_package >= $vc_min_version..."
for vc_checkprog in $vc_checkprogs; do
- echo $ECHO_N " testing $vc_checkprog... "
- if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then
- vc_actual_version=`$vc_checkprog --version | head -n 1 | \
+ echo $ECHO_N " testing $vc_checkprog... "
+ if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then
+ vc_actual_version=`$vc_checkprog --version | head -n 1 | \
sed 's/^.*[ ]\([0-9.]*[a-z]*\).*$/\1/'`
- if compare_versions $vc_min_version $vc_actual_version; then
- echo "found $vc_actual_version"
- # set variable
- eval "$vc_variable=$vc_checkprog"
- vc_status=0
- break
- else
- echo "too old (found version $vc_actual_version)"
- fi
- else
- echo "not found."
- fi
+ if compare_versions $vc_min_version $vc_actual_version; then
+ echo "found $vc_actual_version"
+ # set variable
+ eval "$vc_variable=$vc_checkprog"
+ vc_status=0
+ break
+ else
+ echo "too old (found version $vc_actual_version)"
+ fi
+ else
+ echo "not found."
+ fi
done
if [ "$vc_status" != 0 ]; then
- printerr "***Error***: You must have $vc_package >= $vc_min_version installed"
- printerr " to build $PROJECT. Download the appropriate package for"
- printerr " from your distribution or get the source tarball at"
+ printerr "***Error***: You must have $vc_package >= $vc_min_version installed"
+ printerr " to build $PROJECT. Download the appropriate package for"
+ printerr " from your distribution or get the source tarball at"
printerr " $vc_source"
- printerr
+ printerr
fi
return $vc_status
}