~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to debian/scripts/file2cat

  • Committer: Bazaar Package Importer
  • Author(s): Christopher C. Chimelis
  • Date: 2002-04-18 13:03:49 UTC
  • Revision ID: james.westby@ubuntu.com-20020418130349-pr9a1j3znz4gh3j6
Tags: 2.12.90.0.1-4
* Added patch from Gerhardt Tonn
  to fix s390 merge problem (closes: Bug#143187)
* Corrected DOW of my last changelog entry :-P

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
if [ "$1" = "" ]; then
 
4
        echo "Usage: file2cat <file>"
 
5
        exit 1
 
6
fi
 
7
 
 
8
case "$1" in
 
9
        *.gz|*.Z|*.tgz) cmd=zcat;;
 
10
        *.bz|*.bz2)     cmd=bzcat;;
 
11
        *)              cmd=cat;;
 
12
esac
 
13
$cmd $1