summaryrefslogtreecommitdiff
path: root/common_functions
diff options
context:
space:
mode:
Diffstat (limited to 'common_functions')
-rw-r--r--common_functions18
1 files changed, 8 insertions, 10 deletions
diff --git a/common_functions b/common_functions
index 41584db..cea3aa0 100644
--- a/common_functions
+++ b/common_functions
@@ -5,8 +5,8 @@ set_build_arch()
: ${BUILD_HOST_ARCH:=`uname -m`}
if [ -z "$BUILD_ARCH" ]; then
- BUILD_ARCH="$BUILD_HOST_ARCH"
- test i686 != "$BUILD_ARCH" || BUILD_ARCH=i586 # XXX: why?
+ BUILD_ARCH="$BUILD_HOST_ARCH"
+ test i686 != "$BUILD_ARCH" || BUILD_ARCH=i586 # XXX: why?
fi
case $BUILD_ARCH in
@@ -16,13 +16,11 @@ set_build_arch()
x86_64) BUILD_ARCH="x86_64:i686:i586:i486:i386" ;;
esac
if test "$BUILD_ARCH" != "${BUILD_ARCH#i686}" ; then
- cpuflags=`grep ^flags /proc/cpuinfo`
- cpuflags="$cpuflags "
- test "$cpuflags" = "${cpuflags/ cx8 /}" -o "$cpuflags" = "${cpuflags/ cmov /}" && {
- echo "Your cpu doesn't support i686 rpms. Exit."
- exit 1
- }
+ cpuflags=`grep ^flags /proc/cpuinfo`
+ cpuflags="$cpuflags "
+ test "$cpuflags" = "${cpuflags/ cx8 /}" -o "$cpuflags" = "${cpuflags/ cmov /}" && {
+ echo "Your cpu doesn't support i686 rpms. Exit."
+ exit 1
+ }
fi
}
-
-# vim:sw=4