File: checkarch.sh

package info (click to toggle)
tgt 1%3A1.0.85-1.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: ansic: 28,398; perl: 3,825; xml: 1,867; sh: 1,271; makefile: 301
file content (26 lines) | stat: -rwxr-xr-x 268 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
arch=`gcc -dumpmachine`

case $arch in
`echo $arch | grep x86_64`)
	echo -m64
	;;
`echo $arch | grep "i[3-6]86"`)
	echo -m32
	;;
*)
	echo '
	Failed to parse your architecture.
	Please run

	$ make check32

	or

	$ make check64

	manually.
	'
	exit 1
;;
esac