aboutsummaryrefslogtreecommitdiff
path: root/examples/undeb
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /examples/undeb
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-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/undeb10
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() {
8echo "Usage: undeb -c package.deb <Print control file info>" 8echo "Usage: undeb -c package.deb <Print control file info>"
9echo " undeb -l package.deb <List contents of deb package>" 9echo " undeb -l package.deb <List contents of deb package>"
10echo " undeb -x package.deb /foo/boo <Extract deb package to this directory," 10echo " undeb -x package.deb /foo/boo <Extract deb package to this directory,"
11echo " put . for current directory>" 11echo " put . for current directory>"
12exit 12exit
13} 13}
14 14
15deb=$2 15deb=$2
16 16
17exist() { 17exist() {
18if [ "$deb" = "" ]; then 18if [ "$deb" = "" ]; then
19usage 19usage
@@ -30,11 +30,11 @@ exist
30type more >/dev/null 2>&1 && pager=more 30type more >/dev/null 2>&1 && pager=more
31type less >/dev/null 2>&1 && pager=less 31type 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
34exit 34exit
35elif [ "$1" = "-c" ]; then 35elif [ "$1" = "-c" ]; then
36exist 36exist
37ar -p $deb control.tar.gz | tar -xzO *control 37ar -p $deb control.tar.gz | tar -xzO *control
38exit 38exit
39elif [ "$1" = "-x" ]; then 39elif [ "$1" = "-x" ]; then
40exist 40exist
@@ -44,7 +44,7 @@ elif [ ! -d "$3" ]; then
44echo "No such directory $3!" 44echo "No such directory $3!"
45exit 45exit
46fi 46fi
47ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit 47ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit
48echo 48echo
49echo "Extracted $deb to $3!" 49echo "Extracted $deb to $3!"
50exit 50exit