~ubuntu-branches/ubuntu/hardy/silo/hardy

« back to all changes in this revision

Viewing changes to debian/scripts/file2cat

  • Committer: Bazaar Package Importer
  • Author(s): Ben Collins
  • Date: 2004-06-20 13:11:48 UTC
  • Revision ID: james.westby@ubuntu.com-20040620131148-yiecei98mwg6iis2
Tags: 1.4.6-1
New upstream, partially fixes initrd issues.

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