File: archmap

package info (click to toggle)
glib2.0 2.0.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,072 kB
  • ctags: 24
  • sloc: sh: 4,219; makefile: 254
file content (22 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (100)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# i486 i386 i486 i586 pentium pentiumpro
if [ $(basename $0) = archmap ];then
	if [ -z $1 ];then
        	arch=$(dpkg --print-gnu-build-architecture)
	else
		arch=$1
	fi
else
	if [ -z $arch ];then
        	arch=$(dpkg --print-gnu-build-architecture)
	fi
fi
set -- $(egrep ".* $arch( .*|$)" debian/scripts/archmap)
if [ -z $2 ];then
       	arch=$arch
else
       	arch=$2
fi
if [ $(basename $0) = archmap ];then
	echo $arch
fi