diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /examples/undeb | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) | |
download | busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2 busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'examples/undeb')
-rw-r--r-- | examples/undeb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/undeb b/examples/undeb index a72e1e2ba..37104e9d8 100644 --- a/examples/undeb +++ b/examples/undeb | |||
@@ -8,12 +8,12 @@ usage() { | |||
8 | echo "Usage: undeb -c package.deb <Print control file info>" | 8 | echo "Usage: undeb -c package.deb <Print control file info>" |
9 | echo " undeb -l package.deb <List contents of deb package>" | 9 | echo " undeb -l package.deb <List contents of deb package>" |
10 | echo " undeb -x package.deb /foo/boo <Extract deb package to this directory," | 10 | echo " undeb -x package.deb /foo/boo <Extract deb package to this directory," |
11 | echo " put . for current directory>" | 11 | echo " put . for current directory>" |
12 | exit | 12 | exit |
13 | } | 13 | } |
14 | 14 | ||
15 | deb=$2 | 15 | deb=$2 |
16 | 16 | ||
17 | exist() { | 17 | exist() { |
18 | if [ "$deb" = "" ]; then | 18 | if [ "$deb" = "" ]; then |
19 | usage | 19 | usage |
@@ -30,11 +30,11 @@ exist | |||
30 | type more >/dev/null 2>&1 && pager=more | 30 | type more >/dev/null 2>&1 && pager=more |
31 | type less >/dev/null 2>&1 && pager=less | 31 | type less >/dev/null 2>&1 && pager=less |
32 | [ "$pager" = "" ] && echo "No pager found!" && exit | 32 | [ "$pager" = "" ] && echo "No pager found!" && exit |
33 | (ar -p $deb control.tar.gz | tar -xzO *control ; echo -e "\nPress enter to scroll, q to Quit!\n" ; ar -p $deb data.tar.gz | tar -tzv) | $pager | 33 | (ar -p $deb control.tar.gz | tar -xzO *control ; echo -e "\nPress enter to scroll, q to Quit!\n" ; ar -p $deb data.tar.gz | tar -tzv) | $pager |
34 | exit | 34 | exit |
35 | elif [ "$1" = "-c" ]; then | 35 | elif [ "$1" = "-c" ]; then |
36 | exist | 36 | exist |
37 | ar -p $deb control.tar.gz | tar -xzO *control | 37 | ar -p $deb control.tar.gz | tar -xzO *control |
38 | exit | 38 | exit |
39 | elif [ "$1" = "-x" ]; then | 39 | elif [ "$1" = "-x" ]; then |
40 | exist | 40 | exist |
@@ -44,7 +44,7 @@ elif [ ! -d "$3" ]; then | |||
44 | echo "No such directory $3!" | 44 | echo "No such directory $3!" |
45 | exit | 45 | exit |
46 | fi | 46 | fi |
47 | ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit | 47 | ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit |
48 | echo | 48 | echo |
49 | echo "Extracted $deb to $3!" | 49 | echo "Extracted $deb to $3!" |
50 | exit | 50 | exit |