~ubuntu-branches/ubuntu/precise/tgt/precise

« back to all changes in this revision

Viewing changes to scripts/checkarch.sh

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-02-08 10:31:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110208103104-oots1az6acnkfvuw
Tags: 1:1.0.13-0ubuntu1
* New upstream release.
* debian/patches/make-tgt-setup-lun-executable: Dropped no longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
arch=`gcc -dumpmachine`
 
3
 
 
4
case $arch in
 
5
`echo $arch | grep x86_64`)
 
6
        echo -m64
 
7
        ;;
 
8
`echo $arch | grep "i[3-6]86"`)
 
9
        echo -m32
 
10
        ;;
 
11
*)
 
12
        echo '
 
13
        Failed to parse your architecture.
 
14
        Please run
 
15
 
 
16
        $ make check32
 
17
 
 
18
        or
 
19
 
 
20
        $ make check64
 
21
 
 
22
        manually.
 
23
        '
 
24
        exit 1
 
25
;;
 
26
esac