~ubuntu-branches/ubuntu/gutsy/autofs/gutsy

« back to all changes in this revision

Viewing changes to debian/scripts/archmap

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Lutz
  • Date: 2002-04-05 17:52:32 UTC
  • Revision ID: james.westby@ubuntu.com-20020405175232-w782v57nqv99jph2
Tags: 3.9.99-4.0.0pre10-1
* New maintainer (closes: Bug#131639) 
* Added missing `"' at line 5 in autofs.event.d (closes: Bug#128177)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# i486 i386 i486 i586 pentium pentiumpro
 
3
if [ $(basename $0) = archmap ];then
 
4
        if [ -z $1 ];then
 
5
                arch=$(dpkg --print-gnu-build-architecture)
 
6
        else
 
7
                arch=$1
 
8
        fi
 
9
else
 
10
        if [ -z $arch ];then
 
11
                arch=$(dpkg --print-gnu-build-architecture)
 
12
        fi
 
13
fi
 
14
set -- $(egrep ".* $arch( .*|$)" debian/scripts/archmap)
 
15
if [ -z $2 ];then
 
16
        arch=$arch
 
17
else
 
18
        arch=$2
 
19
fi
 
20
if [ $(basename $0) = archmap ];then
 
21
        echo $arch
 
22
fi