remove unused files
[platform/upstream/gcc48.git] / packaging / check-build.sh
1 #!/bin/bash
2 # Copyright (c) 2003,2005 SUSE Linux Products GmbH, Germany.  All rights reserved.
3 #
4 # Authors: Thorsten Kukuk <kukuk@suse.de>
5 #
6 # this script use the following variable(s):
7
8 # - $BUILD_BASENAME
9 #
10
11 case $BUILD_BASENAME in
12    *ppc*)
13         # Our biarch 32-bit compiler needs to be build on a 64-bit machine,
14         # otherwise some configure checks fail.
15         # Note that we cannot use uname here since powerpc32 was invoked
16         # already.
17         grep 'series64\|ppc64' /proc/version > /dev/null
18         if [ $? -ne 0 ] ; then
19           echo "build does not work on `hostname` for gcc"
20           exit 1
21         fi
22         ;;
23    *x86_64*)
24         #if [ `ulimit -v` -le 740000 ] ; then
25         #  echo "build does not work on ("`hostname`" for gcc)"
26         #  exit 1
27         #fi
28         if [ `getconf _NPROCESSORS_CONF` -lt  2 ] ; then
29           echo "build does not work on `hostname` for gcc"
30           exit 1
31         fi
32         ;;
33    *)
34         ;;
35 esac
36
37 exit 0
38