diff options
Diffstat (limited to 'beagle/debian-rfs/bin')
68 files changed, 1078 insertions, 0 deletions
diff --git a/beagle/debian-rfs/bin/bash b/beagle/debian-rfs/bin/bash Binary files differnew file mode 100755 index 0000000..ff11d78 --- /dev/null +++ b/beagle/debian-rfs/bin/bash diff --git a/beagle/debian-rfs/bin/cat b/beagle/debian-rfs/bin/cat Binary files differnew file mode 100755 index 0000000..66c2361 --- /dev/null +++ b/beagle/debian-rfs/bin/cat diff --git a/beagle/debian-rfs/bin/chgrp b/beagle/debian-rfs/bin/chgrp Binary files differnew file mode 100755 index 0000000..4dc4fcc --- /dev/null +++ b/beagle/debian-rfs/bin/chgrp diff --git a/beagle/debian-rfs/bin/chmod b/beagle/debian-rfs/bin/chmod Binary files differnew file mode 100755 index 0000000..baa72d4 --- /dev/null +++ b/beagle/debian-rfs/bin/chmod diff --git a/beagle/debian-rfs/bin/chown b/beagle/debian-rfs/bin/chown Binary files differnew file mode 100755 index 0000000..1fcd6ab --- /dev/null +++ b/beagle/debian-rfs/bin/chown diff --git a/beagle/debian-rfs/bin/cp b/beagle/debian-rfs/bin/cp Binary files differnew file mode 100755 index 0000000..0e5c98d --- /dev/null +++ b/beagle/debian-rfs/bin/cp diff --git a/beagle/debian-rfs/bin/dash b/beagle/debian-rfs/bin/dash Binary files differnew file mode 100755 index 0000000..9dc72bc --- /dev/null +++ b/beagle/debian-rfs/bin/dash diff --git a/beagle/debian-rfs/bin/date b/beagle/debian-rfs/bin/date Binary files differnew file mode 100755 index 0000000..1320f00 --- /dev/null +++ b/beagle/debian-rfs/bin/date diff --git a/beagle/debian-rfs/bin/dd b/beagle/debian-rfs/bin/dd Binary files differnew file mode 100755 index 0000000..90dc11d --- /dev/null +++ b/beagle/debian-rfs/bin/dd diff --git a/beagle/debian-rfs/bin/df b/beagle/debian-rfs/bin/df Binary files differnew file mode 100755 index 0000000..86ca256 --- /dev/null +++ b/beagle/debian-rfs/bin/df diff --git a/beagle/debian-rfs/bin/dir b/beagle/debian-rfs/bin/dir Binary files differnew file mode 100755 index 0000000..6dfb0da --- /dev/null +++ b/beagle/debian-rfs/bin/dir diff --git a/beagle/debian-rfs/bin/dmesg b/beagle/debian-rfs/bin/dmesg Binary files differnew file mode 100755 index 0000000..7d0200e --- /dev/null +++ b/beagle/debian-rfs/bin/dmesg diff --git a/beagle/debian-rfs/bin/dnsdomainname b/beagle/debian-rfs/bin/dnsdomainname Binary files differnew file mode 100755 index 0000000..1e4f9a3 --- /dev/null +++ b/beagle/debian-rfs/bin/dnsdomainname diff --git a/beagle/debian-rfs/bin/domainname b/beagle/debian-rfs/bin/domainname Binary files differnew file mode 100755 index 0000000..1e4f9a3 --- /dev/null +++ b/beagle/debian-rfs/bin/domainname diff --git a/beagle/debian-rfs/bin/echo b/beagle/debian-rfs/bin/echo Binary files differnew file mode 100755 index 0000000..27b70eb --- /dev/null +++ b/beagle/debian-rfs/bin/echo diff --git a/beagle/debian-rfs/bin/egrep b/beagle/debian-rfs/bin/egrep Binary files differnew file mode 100755 index 0000000..735306a --- /dev/null +++ b/beagle/debian-rfs/bin/egrep diff --git a/beagle/debian-rfs/bin/false b/beagle/debian-rfs/bin/false Binary files differnew file mode 100755 index 0000000..f389bac --- /dev/null +++ b/beagle/debian-rfs/bin/false diff --git a/beagle/debian-rfs/bin/fgrep b/beagle/debian-rfs/bin/fgrep Binary files differnew file mode 100755 index 0000000..c0f00f3 --- /dev/null +++ b/beagle/debian-rfs/bin/fgrep diff --git a/beagle/debian-rfs/bin/grep b/beagle/debian-rfs/bin/grep Binary files differnew file mode 100755 index 0000000..54bd9f6 --- /dev/null +++ b/beagle/debian-rfs/bin/grep diff --git a/beagle/debian-rfs/bin/gunzip b/beagle/debian-rfs/bin/gunzip new file mode 100755 index 0000000..072bead --- /dev/null +++ b/beagle/debian-rfs/bin/gunzip @@ -0,0 +1,3 @@ +#!/bin/bash +PATH=${GZIP_BINDIR-'/bin'}:$PATH +exec gzip -d "$@" diff --git a/beagle/debian-rfs/bin/gzexe b/beagle/debian-rfs/bin/gzexe new file mode 100755 index 0000000..b72741e --- /dev/null +++ b/beagle/debian-rfs/bin/gzexe @@ -0,0 +1,229 @@ +#!/bin/bash +# gzexe: compressor for Unix executables. +# Use this only for binaries that you do not use frequently. +# +# The compressed version is a shell script which decompresses itself after +# skipping $skip lines of shell commands. We try invoking the compressed +# executable with the original name (for programs looking at their name). +# We also try to retain the original file permissions on the compressed file. +# For safety reasons, gzexe will not create setuid or setgid shell scripts. + +# WARNING: the first line of this file must be either : or #!/bin/bash +# The : is required for some old versions of csh. +# On Ultrix, /bin/bash is too buggy, change the first line to: #!/bin/bash5 + + +# Copyright (C) 1998, 2002, 2004, 2006, 2007 Free Software Foundation +# Copyright (C) 1993 Jean-loup Gailly + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +tab=' ' +nl=' +' +IFS=" $tab$nl" + +version='gzexe (gzip) 1.3.12 +Copyright (C) 2007 Free Software Foundation, Inc. +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +There is NO WARRANTY, to the extent permitted by law. + +Written by Jean-loup Gailly.' + +usage="Usage: $0 [OPTION] FILE... +Rename each FILE with a compressed version of itself, renaming FILE to FILE~. + + -d Decompress each FILE instead of compressing it. + --help display this help and exit + --version output version information and exit + +Report bugs to <bug-gzip@gnu.org>." + + +PATH="${GZIP_BINDIR-'/bin'}:$PATH" + +decomp=0 +res=0 +while :; do + case $1 in + -d) decomp=1; shift;; + --h*) exec echo "$usage";; + --v*) exec echo "$version";; + --) shift; break;; + *) break;; + esac +done + +if test $# -eq 0; then + echo >&2 "$0: missing operand +Try \`$0 --help' for more information." + exit 1 +fi + +tmp= +trap 'res=$? + test -n "$tmp" && rm -f "$tmp" + (exit $res); exit $res +' 0 1 2 3 5 10 13 15 + +mktemp_status= + +for i do + case $i in + -*) file=./$i;; + *) file=$i;; + esac + if test ! -f "$file" || test ! -r "$file"; then + res=$? + echo >&2 "$0: $i is not a readable regular file" + continue + fi + if test $decomp -eq 0; then + if sed -e 1d -e 2q "$file" | grep "^skip=[0-9][0-9]*$" >/dev/null; then + echo >&2 "$0: $i is already gzexe'd" + continue + fi + fi + if test -u "$file"; then + echo >&2 "$0: $i has setuid permission, unchanged" + continue + fi + if test -g "$file"; then + echo >&2 "$0: $i has setgid permission, unchanged" + continue + fi + case /$file in + */basename | */bash | */cat | */chmod | */cp | \ + */dirname | */echo | */expr | */gzip | \ + */ln | */mkdir | */mktemp | */mv | */rm | \ + */sed | */sh | */sleep | */test | */tail) + echo >&2 "$0: $i might depend on itself"; continue;; + esac + + dir=`dirname "$file"` || dir=$TMPDIR + test -d "$dir" && test -w "$dir" && test -x "$dir" || dir=/tmp + test -n "$tmp" && rm -f "$tmp" + if test -z "$mktemp_status"; then + type mktemp >/dev/null 2>&1 + mktemp_status=$? + fi + if test $mktemp_status -eq 0; then + tmp=`TMPDIR=$dir mktemp -t gzexeXXXXXX` + else + tmp=$dir/gzexe$$ + fi && { cp -p "$file" "$tmp" 2>/dev/null || cp "$file" "$tmp"; } || { + res=$? + echo >&2 "$0: cannot copy $file" + continue + } + if test -w "$tmp"; then + writable=1 + else + writable=0 + chmod u+w "$tmp" || { + res=$? + echo >&2 "$0: cannot chmod $tmp" + continue + } + fi + if test $decomp -eq 0; then + (cat <<'EOF' && +#!/bin/bash +skip=44 + +tab=' ' +nl=' +' +IFS=" $tab$nl" + +umask=`umask` +umask 77 + +gztmpdir= +trap 'res=$? + test -n "$gztmpdir" && rm -fr "$gztmpdir" + (exit $res); exit $res +' 0 1 2 3 5 10 13 15 + +if type mktemp >/dev/null 2>&1; then + gztmpdir=`mktemp -dt` +else + gztmpdir=/tmp/gztmp$$; mkdir $gztmpdir +fi || { (exit 127); exit 127; } + +gztmp=$gztmpdir/$0 +case $0 in +-* | */*' +') mkdir -p "$gztmp" && rm -r "$gztmp";; +*/*) gztmp=$gztmpdir/`basename "$0"`;; +esac || { (exit 127); exit 127; } + +case `echo X | tail -n +1 2>/dev/null` in +X) tail_n=-n;; +*) tail_n=;; +esac +if tail $tail_n +$skip <"$0" | gzip -cd > "$gztmp"; then + umask $umask + chmod 700 "$gztmp" + (sleep 5; rm -fr "$gztmpdir") 2>/dev/null & + "$gztmp" ${1+"$@"}; res=$? +else + echo >&2 "Cannot decompress $0" + (exit 127); res=127 +fi; exit $res +EOF + gzip -cv9 "$file") > "$tmp" || { + res=$? + echo >&2 "$0: compression not possible for $i, file unchanged." + continue + } + + else + # decompression + skip=44 + skip_line=`sed -e 1d -e 2q "$file"` + case $skip_line in + skip=[0-9] | skip=[0-9][0-9] | skip=[0-9][0-9][0-9]) + eval "$skip_line";; + esac + case `echo X | tail -n +1 2>/dev/null` in + X) tail_n=-n;; + *) tail_n=;; + esac + tail $tail_n +$skip "$file" | gzip -cd > "$tmp" || { + res=$? + echo >&2 "$0: $i probably not in gzexe format, file unchanged." + continue + } + fi + test $writable -eq 1 || chmod u-w "$tmp" || { + res=$? + echo >&2 "$0: $tmp: cannot chmod" + continue + } + ln -f "$file" "$file~" || { + res=$? + echo >&2 "$0: cannot backup $i as $i~" + continue + } + mv -f "$tmp" "$file" || { + res=$? + echo >&2 "$0: cannot rename $tmp to $i" + continue + } + tmp= +done +(exit $res); exit $res diff --git a/beagle/debian-rfs/bin/gzip b/beagle/debian-rfs/bin/gzip Binary files differnew file mode 100755 index 0000000..9038edc --- /dev/null +++ b/beagle/debian-rfs/bin/gzip diff --git a/beagle/debian-rfs/bin/hostname b/beagle/debian-rfs/bin/hostname Binary files differnew file mode 100755 index 0000000..1e4f9a3 --- /dev/null +++ b/beagle/debian-rfs/bin/hostname diff --git a/beagle/debian-rfs/bin/ln b/beagle/debian-rfs/bin/ln Binary files differnew file mode 100755 index 0000000..ef8c6c8 --- /dev/null +++ b/beagle/debian-rfs/bin/ln diff --git a/beagle/debian-rfs/bin/login b/beagle/debian-rfs/bin/login Binary files differnew file mode 100755 index 0000000..84b70cc --- /dev/null +++ b/beagle/debian-rfs/bin/login diff --git a/beagle/debian-rfs/bin/ls b/beagle/debian-rfs/bin/ls Binary files differnew file mode 100755 index 0000000..3de8693 --- /dev/null +++ b/beagle/debian-rfs/bin/ls diff --git a/beagle/debian-rfs/bin/mkdir b/beagle/debian-rfs/bin/mkdir Binary files differnew file mode 100755 index 0000000..ebbaaff --- /dev/null +++ b/beagle/debian-rfs/bin/mkdir diff --git a/beagle/debian-rfs/bin/mknod b/beagle/debian-rfs/bin/mknod Binary files differnew file mode 100755 index 0000000..bbc61f8 --- /dev/null +++ b/beagle/debian-rfs/bin/mknod diff --git a/beagle/debian-rfs/bin/mktemp b/beagle/debian-rfs/bin/mktemp Binary files differnew file mode 100755 index 0000000..f1c70b0 --- /dev/null +++ b/beagle/debian-rfs/bin/mktemp diff --git a/beagle/debian-rfs/bin/more b/beagle/debian-rfs/bin/more Binary files differnew file mode 100755 index 0000000..6596a63 --- /dev/null +++ b/beagle/debian-rfs/bin/more diff --git a/beagle/debian-rfs/bin/mount b/beagle/debian-rfs/bin/mount Binary files differnew file mode 100755 index 0000000..9238343 --- /dev/null +++ b/beagle/debian-rfs/bin/mount diff --git a/beagle/debian-rfs/bin/mountpoint b/beagle/debian-rfs/bin/mountpoint Binary files differnew file mode 100755 index 0000000..0b15539 --- /dev/null +++ b/beagle/debian-rfs/bin/mountpoint diff --git a/beagle/debian-rfs/bin/mv b/beagle/debian-rfs/bin/mv Binary files differnew file mode 100755 index 0000000..640f61f --- /dev/null +++ b/beagle/debian-rfs/bin/mv diff --git a/beagle/debian-rfs/bin/nisdomainname b/beagle/debian-rfs/bin/nisdomainname Binary files differnew file mode 100755 index 0000000..1e4f9a3 --- /dev/null +++ b/beagle/debian-rfs/bin/nisdomainname diff --git a/beagle/debian-rfs/bin/pidof b/beagle/debian-rfs/bin/pidof new file mode 120000 index 0000000..bca2a3a --- /dev/null +++ b/beagle/debian-rfs/bin/pidof @@ -0,0 +1 @@ +/sbin/killall5
\ No newline at end of file diff --git a/beagle/debian-rfs/bin/pwd b/beagle/debian-rfs/bin/pwd Binary files differnew file mode 100755 index 0000000..624ed0d --- /dev/null +++ b/beagle/debian-rfs/bin/pwd diff --git a/beagle/debian-rfs/bin/rbash b/beagle/debian-rfs/bin/rbash new file mode 120000 index 0000000..f4d7fa5 --- /dev/null +++ b/beagle/debian-rfs/bin/rbash @@ -0,0 +1 @@ +bash
\ No newline at end of file diff --git a/beagle/debian-rfs/bin/readlink b/beagle/debian-rfs/bin/readlink Binary files differnew file mode 100755 index 0000000..3e2c1ab --- /dev/null +++ b/beagle/debian-rfs/bin/readlink diff --git a/beagle/debian-rfs/bin/rm b/beagle/debian-rfs/bin/rm Binary files differnew file mode 100755 index 0000000..ee8021f --- /dev/null +++ b/beagle/debian-rfs/bin/rm diff --git a/beagle/debian-rfs/bin/rmdir b/beagle/debian-rfs/bin/rmdir Binary files differnew file mode 100755 index 0000000..6d8e2e2 --- /dev/null +++ b/beagle/debian-rfs/bin/rmdir diff --git a/beagle/debian-rfs/bin/run-parts b/beagle/debian-rfs/bin/run-parts Binary files differnew file mode 100755 index 0000000..e6d1c38 --- /dev/null +++ b/beagle/debian-rfs/bin/run-parts diff --git a/beagle/debian-rfs/bin/sed b/beagle/debian-rfs/bin/sed Binary files differnew file mode 100755 index 0000000..c1775d7 --- /dev/null +++ b/beagle/debian-rfs/bin/sed diff --git a/beagle/debian-rfs/bin/sh b/beagle/debian-rfs/bin/sh new file mode 120000 index 0000000..7e03e4f --- /dev/null +++ b/beagle/debian-rfs/bin/sh @@ -0,0 +1 @@ +dash
\ No newline at end of file diff --git a/beagle/debian-rfs/bin/sleep b/beagle/debian-rfs/bin/sleep Binary files differnew file mode 100755 index 0000000..48880ed --- /dev/null +++ b/beagle/debian-rfs/bin/sleep diff --git a/beagle/debian-rfs/bin/stty b/beagle/debian-rfs/bin/stty Binary files differnew file mode 100755 index 0000000..52e7e9e --- /dev/null +++ b/beagle/debian-rfs/bin/stty diff --git a/beagle/debian-rfs/bin/su b/beagle/debian-rfs/bin/su Binary files differnew file mode 100755 index 0000000..e19699b --- /dev/null +++ b/beagle/debian-rfs/bin/su diff --git a/beagle/debian-rfs/bin/sync b/beagle/debian-rfs/bin/sync Binary files differnew file mode 100755 index 0000000..7170210 --- /dev/null +++ b/beagle/debian-rfs/bin/sync diff --git a/beagle/debian-rfs/bin/tailf b/beagle/debian-rfs/bin/tailf Binary files differnew file mode 100755 index 0000000..bda4022 --- /dev/null +++ b/beagle/debian-rfs/bin/tailf diff --git a/beagle/debian-rfs/bin/tar b/beagle/debian-rfs/bin/tar Binary files differnew file mode 100755 index 0000000..dade48c --- /dev/null +++ b/beagle/debian-rfs/bin/tar diff --git a/beagle/debian-rfs/bin/tempfile b/beagle/debian-rfs/bin/tempfile Binary files differnew file mode 100755 index 0000000..fd4c7ee --- /dev/null +++ b/beagle/debian-rfs/bin/tempfile diff --git a/beagle/debian-rfs/bin/touch b/beagle/debian-rfs/bin/touch Binary files differnew file mode 100755 index 0000000..5115bcd --- /dev/null +++ b/beagle/debian-rfs/bin/touch diff --git a/beagle/debian-rfs/bin/true b/beagle/debian-rfs/bin/true Binary files differnew file mode 100755 index 0000000..a74dfe6 --- /dev/null +++ b/beagle/debian-rfs/bin/true diff --git a/beagle/debian-rfs/bin/umount b/beagle/debian-rfs/bin/umount Binary files differnew file mode 100755 index 0000000..91074eb --- /dev/null +++ b/beagle/debian-rfs/bin/umount diff --git a/beagle/debian-rfs/bin/uname b/beagle/debian-rfs/bin/uname Binary files differnew file mode 100755 index 0000000..34f3e70 --- /dev/null +++ b/beagle/debian-rfs/bin/uname diff --git a/beagle/debian-rfs/bin/uncompress b/beagle/debian-rfs/bin/uncompress new file mode 100755 index 0000000..072bead --- /dev/null +++ b/beagle/debian-rfs/bin/uncompress @@ -0,0 +1,3 @@ +#!/bin/bash +PATH=${GZIP_BINDIR-'/bin'}:$PATH +exec gzip -d "$@" diff --git a/beagle/debian-rfs/bin/vdir b/beagle/debian-rfs/bin/vdir Binary files differnew file mode 100755 index 0000000..bb9f3d5 --- /dev/null +++ b/beagle/debian-rfs/bin/vdir diff --git a/beagle/debian-rfs/bin/which b/beagle/debian-rfs/bin/which new file mode 100755 index 0000000..5b2329d --- /dev/null +++ b/beagle/debian-rfs/bin/which @@ -0,0 +1,63 @@ +#! /bin/sh +set -ef + +if test -n "$KSH_VERSION"; then + puts() { + print -r -- "$*" + } +else + puts() { + printf '%s\n' "$*" + } +fi + +ALLMATCHES=0 + +while getopts a whichopts +do + case "$whichopts" in + a) ALLMATCHES=1 ;; + ?) puts "Usage: $0 [-a] args"; exit 2 ;; + esac +done +shift $(($OPTIND - 1)) + +if [ "$#" -eq 0 ]; then + ALLRET=1 +else + ALLRET=0 +fi +case $PATH in + (*[!:]:) PATH="$PATH:" ;; +esac +for PROGRAM in "$@"; do + RET=1 + IFS_SAVE="$IFS" + IFS=: + case $PROGRAM in + */*) + if [ -f "$PROGRAM" ] && [ -x "$PROGRAM" ]; then + puts "$PROGRAM" + RET=0 + fi + ;; + *) + for ELEMENT in $PATH; do + if [ -z "$ELEMENT" ]; then + ELEMENT=. + fi + if [ -f "$ELEMENT/$PROGRAM" ] && [ -x "$ELEMENT/$PROGRAM" ]; then + puts "$ELEMENT/$PROGRAM" + RET=0 + [ "$ALLMATCHES" -eq 1 ] || break + fi + done + ;; + esac + IFS="$IFS_SAVE" + if [ "$RET" -ne 0 ]; then + ALLRET=1 + fi +done + +exit "$ALLRET" diff --git a/beagle/debian-rfs/bin/ypdomainname b/beagle/debian-rfs/bin/ypdomainname Binary files differnew file mode 100755 index 0000000..1e4f9a3 --- /dev/null +++ b/beagle/debian-rfs/bin/ypdomainname diff --git a/beagle/debian-rfs/bin/zcat b/beagle/debian-rfs/bin/zcat new file mode 100755 index 0000000..50ec10f --- /dev/null +++ b/beagle/debian-rfs/bin/zcat @@ -0,0 +1,3 @@ +#!/bin/bash +PATH=${GZIP_BINDIR-'/bin'}:$PATH +exec gzip -cd "$@" diff --git a/beagle/debian-rfs/bin/zcmp b/beagle/debian-rfs/bin/zcmp new file mode 100755 index 0000000..2059ccc --- /dev/null +++ b/beagle/debian-rfs/bin/zcmp @@ -0,0 +1,3 @@ +#!/bin/bash +PATH=${GZIP_BINDIR-'/bin'}:$PATH +exec zdiff --__cmp "$@" diff --git a/beagle/debian-rfs/bin/zdiff b/beagle/debian-rfs/bin/zdiff new file mode 100755 index 0000000..5e1ae01 --- /dev/null +++ b/beagle/debian-rfs/bin/zdiff @@ -0,0 +1,161 @@ +#!/bin/bash +# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh + +# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation +# Copyright (C) 1993 Jean-loup Gailly + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +PATH=${GZIP_BINDIR-'/bin'}:$PATH + +case $1 in + --__cmp) shift + prog=cmp; cmp='${CMP-cmp}' ;; + *) prog=diff; cmp='${DIFF-diff}';; +esac + +version="z$prog (gzip) 1.3.12 +Copyright (C) 2007 Free Software Foundation, Inc. +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +There is NO WARRANTY, to the extent permitted by law. + +Written by Jean-loup Gailly." + +usage="Usage: $0 [OPTION]... FILE1 [FILE2] +Compare FILE1 to FILE2, using their uncompressed contents if they are +compressed. If FILE2 is omitted, compare FILE1 to the uncompressed +contents of FILE1.gz. Do comparisons like '$prog' does. + +OPTIONs are the same as for '$prog'. + +Report bugs to <bug-gzip@gnu.org>." + +# sed script to escape all ' for the shell, and then (to handle trailing +# newlines correctly) turn trailing X on last line into '. +escape=' + s/'\''/'\''\\'\'''\''/g + $s/X$/'\''/ +' + +while :; do + case $1 in + --h*) printf '%s\n' "$usage" || exit 2; exit;; + --v*) echo "$version" || exit 2; exit;; + --) shift; break;; + -*\'*) cmp="$cmp '"`printf '%sX\n' "$1" | sed "$escape"`;; + -?*) cmp="$cmp '$1'";; + *) break;; + esac + shift +done +cmp="$cmp --" + +for file +do + test "X$file" = X- || <"$file" || exit 2 +done + +gzip_status=0 +exec 3>&1 + +if test $# -eq 1; then + case $1 in + *[-.]gz* | *[-.][zZ] | *.t[ga]z) + FILE=`expr "X$1" : 'X\(.*\)[-.][zZtga]*$'` + gzip_status=$( + exec 4>&1 + (gzip -cd -- "$1" 4>&-; echo $? >&4) 3>&- | eval "$cmp" - '"$FILE"' >&3 + );; + *) + echo >&2 "$0: $1: unknown compressed file extension" + exit 2;; + esac +elif test $# -eq 2; then + case "$1" in + *[-.]gz* | *[-.][zZ] | *.t[ga]z | -) + case "$2" in + *[-.]gz* | *[-.][zZ] | *.t[ga]z | -) + if test "$1$2" = --; then + gzip_status=$( + exec 4>&1 + (gzip -cdfq - 4>&-; echo $? >&4) 3>&- | + eval "$cmp" - - >&3 + ) + elif + # Reject Solaris 8's buggy /bin/bash 2.03. + echo X | + (echo X | eval "$cmp" /dev/fd/5 - >/dev/null 2>&1) \ + 5<&0 + then + gzip_status=$( + exec 4>&1 + (gzip -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- | + ( (gzip -cdfq -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null | + eval "$cmp" /dev/fd/5 - >&3) 5<&0 + ) + case $gzip_status in + *[1-9]*) gzip_status=1;; + *) gzip_status=0;; + esac + else + F=`expr "/$2" : '.*/\(.*\)[-.][zZtga]*$'` || F=$prog + tmp= + trap ' + test -n "$tmp" && rm -f "$tmp" + (exit 2); exit 2 + ' HUP INT PIPE TERM 0 + if type mktemp >/dev/null 2>&1; then + tmp=`mktemp -t -- "$F.XXXXXX"` || exit 2 + else + set -C + tmp=${TMPDIR-/tmp}/$F.$$ + fi + gzip -cdfq -- "$2" > "$tmp" || exit 2 + gzip_status=$( + exec 4>&1 + (gzip -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- | + eval "$cmp" - '"$tmp"' >&3 + ) + cmp_status=$? + rm -f "$tmp" || gzip_status=$? + trap - HUP INT PIPE TERM 0 + (exit $cmp_status) + fi;; + *) + gzip_status=$( + exec 4>&1 + (gzip -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- | + eval "$cmp" - '"$2"' >&3 + );; + esac;; + *) case "$2" in + *[-.]gz* | *[-.][zZ] | *.t[ga]z | -) + gzip_status=$( + exec 4>&1 + (gzip -cdfq -- "$2" 4>&-; echo $? >&4) 3>&- | + eval "$cmp" '"$1"' - >&3 + );; + *) eval "$cmp" '"$1"' '"$2"';; + esac;; + esac +else + echo >&2 "$0: invalid number of operands; try \`$0 --help' for help" + exit 2 +fi + +cmp_status=$? +test "$gzip_status" -eq 0 || exit 2 +exit $cmp_status diff --git a/beagle/debian-rfs/bin/zegrep b/beagle/debian-rfs/bin/zegrep new file mode 100755 index 0000000..d6a8424 --- /dev/null +++ b/beagle/debian-rfs/bin/zegrep @@ -0,0 +1,3 @@ +#!/bin/bash +PATH=${GZIP_BINDIR-'/bin'}:$PATH +exec zgrep -E "$@" diff --git a/beagle/debian-rfs/bin/zfgrep b/beagle/debian-rfs/bin/zfgrep new file mode 100755 index 0000000..cfae653 --- /dev/null +++ b/beagle/debian-rfs/bin/zfgrep @@ -0,0 +1,3 @@ +#!/bin/bash +PATH=${GZIP_BINDIR-'/bin'}:$PATH +exec zgrep -F "$@" diff --git a/beagle/debian-rfs/bin/zforce b/beagle/debian-rfs/bin/zforce new file mode 100755 index 0000000..02733ef --- /dev/null +++ b/beagle/debian-rfs/bin/zforce @@ -0,0 +1,71 @@ +#!/bin/bash +# zforce: force a gz extension on all gzip files so that gzip will not +# compress them twice. +# +# This can be useful for files with names truncated after a file transfer. +# 12345678901234 is renamed to 12345678901.gz + + +# Copyright (C) 2002, 2007 Free Software Foundation +# Copyright (C) 1993 Jean-loup Gailly + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +PATH="${GZIP_BINDIR-'/bin'}:$PATH"; export PATH + +version="zforce (gzip) 1.3.12 +Copyright (C) 2007 Free Software Foundation, Inc. +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +There is NO WARRANTY, to the extent permitted by law. + +Written by Jean-loup Gailly." + +usage="Usage: $0 [FILE]... +Force a .gz extension on all compressed FILEs so that gzip will +not compress them twice. + +Report bugs to <bug-gzip@gnu.org>." + +if test $# = 0; then + echo "$usage" + exit 1 +fi + +res=0 +for i do + case "$i" in + --h*) exec echo "$usage";; + --v*) exec echo "$version";; + *[-.]z | *[-.]gz | *.t[ag]z) continue;; + esac + + if test ! -f "$i" ; then + echo zforce: $i not a file + res=1 + continue + fi + + if gzip -lv < "$i" 2>/dev/null | grep '^defl' > /dev/null; then + + new="$i.gz" + if mv "$i" "$new"; then + echo $i -- replaced with $new + else + res=$? + fi + fi +done +exit $res diff --git a/beagle/debian-rfs/bin/zgrep b/beagle/debian-rfs/bin/zgrep new file mode 100755 index 0000000..0937ac3 --- /dev/null +++ b/beagle/debian-rfs/bin/zgrep @@ -0,0 +1,209 @@ +#!/bin/bash + +# zgrep -- a wrapper around a grep program that decompresses files as needed +# Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca> + +# Copyright (C) 1998, 2001, 2002, 2006, 2007 Free Software Foundation +# Copyright (C) 1993 Jean-loup Gailly + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +PATH=${GZIP_BINDIR-'/bin'}:$PATH +grep='${GREP-grep}' + +version='z$grep (gzip) 1.3.12 +Copyright (C) 2007 Free Software Foundation, Inc. +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +There is NO WARRANTY, to the extent permitted by law. + +Written by Jean-loup Gailly.' + +usage="Usage: $0 [OPTION]... [-e] PATTERN [FILE]... +Look for instances of PATTERN in the input FILEs, using their +uncompressed contents if they are compressed. + +OPTIONs are the same as for 'grep'. + +Report bugs to <bug-gzip@gnu.org>." + +# sed script to escape all ' for the shell, and then (to handle trailing +# newlines correctly) turn trailing X on last line into '. +escape=' + s/'\''/'\''\\'\'''\''/g + $s/X$/'\''/ +' +operands= +have_pat=0 +pat_on_stdin=0 +files_with_matches=0 +files_without_matches=0 +no_filename=0 +with_filename=0 + +while test $# -ne 0; do + option=$1 + shift + optarg= + + case $option in + (-[0123456789abcdhHiIKLlnoqrRsTuUvVwxyzZ]?*) + arg2=-\'$(expr "X${option}X" : 'X-.[0-9]*\(.*\)' | sed "$escape") + eval "set -- $arg2 "'${1+"$@"}' + option=$(expr "X$option" : 'X\(-.[0-9]*\)');; + (--binary-*=* | --[lm]a*=* | --reg*=*) + ;; + (-[ABCDefm] | --binary-* | --file | --[lm]a* | --reg*) + case ${1?"$option option requires an argument"} in + (*\'*) + optarg=" '"$(printf '%sX\n' "$1" | sed "$escape");; + (*) + optarg=" '$1'";; + esac + shift;; + (--) + break;; + (-?*) + ;; + (*) + case $option in + (*\'*) + operands="$operands '"$(printf '%sX\n' "$option" | sed "$escape");; + (*) + operands="$operands '$option'";; + esac + ${POSIXLY_CORRECT+break} + continue;; + esac + + case $option in + (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*) + printf >&2 '%s: %s: option not supported\n' "$0" "$option" + exit 2;; + (-[ef]* | --file | --file=* | --reg*) + # The pattern is coming from a file rather than the command-line. + # If the file is actually stdin then we need to do a little + # magic, (since we use stdin to pass the gzip output to grep). + # So find a free fd and change the argument to then use this + # file descriptor for the pattern. + case $optarg in + (" '-'" | " '/dev/stdin'" | " '/dev/fd/0'") + pat_on_stdin=1 + # Start search from 6 since the script already uses 3 and 5 + for fd in $(seq 6 254); do + if test ! -e /dev/fd/$fd; then + pat_fd=$fd + break; + fi + done + optarg=/dev/fd/$pat_fd; + esac + have_pat=1;; + (--h | --he | --hel | --help) + echo "$usage" || exit 2 + exit;; + (-H | --wi | --wit | --with | --with- | --with-f | --with-fi \ + | --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \ + | --with-filename) + with_filename=1 + continue;; + (-l | --files-with-*) + files_with_matches=1;; + (-L | --files-witho*) + files_without_matches=1;; + (-h | --no-f*) + no_filename=1;; + (-V | --v | --ve | --ver | --vers | --versi | --versio | --version) + echo "$version" || exit 2 + exit;; + esac + + case $option in + (*\'?*) + option=\'$(expr "X${option}X" : 'X\(.*\)' | sed "$escape");; + (*) + option="'$option'";; + esac + + grep="$grep $option$optarg" +done + +eval "set -- $operands "'${1+"$@"}' + +if test $have_pat -eq 0; then + case ${1?"missing pattern; try \`$0 --help' for help"} in + (*\'*) + grep="$grep -- '"$(printf '%sX\n' "$1" | sed "$escape");; + (*) + grep="$grep -- '$1'";; + esac + shift +fi + +if test $# -eq 0; then + set -- - +fi + +exec 3>&1 +res=0 + +for i +do + # Fail if gzip or grep (or sed) fails. + gzip_status=$( + exec 5>&1 + if test $pat_on_stdin -eq 1; then + eval "exec $pat_fd<&0" + fi + (gzip -cdfq -- "$i" 5>&-; echo $? >&5) 3>&- | + if test $files_with_matches -eq 1; then + eval "$grep" >/dev/null && { printf '%s\n' "$i" || exit 2; } + elif test $files_without_matches -eq 1; then + eval "$grep" >/dev/null || { + r=$? + if test $r -eq 1; then + printf '%s\n' "$i" || r=2 + fi + exit $r + } + elif test $with_filename -eq 0 && + { test $# -eq 1 || test $no_filename -eq 1; }; then + eval "$grep" + else + case $i in + (*' +'* | *'&'* | *'\'* | *'|'*) + i=$(printf '%s\n' "$i" | + sed ' + $!N + $s/[&\|]/\\&/g + $s/\n/\\n/g + ');; + esac + sed_script="s|^|$i:|" + + # Fail if grep or sed fails. + r=$( + exec 4>&1 + (eval "$grep" 4>&-; echo $? >&4) 3>&- | sed "$sed_script" >&3 4>&- + ) || r=2 + exit $r + fi >&3 5>&- + ) + r=$? + test "$gzip_status" -eq 0 || test "$gzip_status" -eq 2 || r=2 + test $res -lt $r && res=$r +done +exit $res diff --git a/beagle/debian-rfs/bin/zless b/beagle/debian-rfs/bin/zless new file mode 100755 index 0000000..f335012 --- /dev/null +++ b/beagle/debian-rfs/bin/zless @@ -0,0 +1,53 @@ +#!/bin/bash + +# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +PATH="${GZIP_BINDIR-'/bin'}:$PATH"; export PATH + +version="zless (gzip) 1.3.12 +Copyright (C) 2007 Free Software Foundation, Inc. +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +There is NO WARRANTY, to the extent permitted by law. + +Written by Paul Eggert." + +usage="Usage: $0 [OPTION]... [FILE]... +Like 'less', but operate on the uncompressed contents of any compressed FILEs. + +Options are the same as for 'less'. + +Report bugs to <bug-gzip@gnu.org>." + +case $1 in +--help) exec echo "$usage";; +--version) exec echo "$version";; +esac + +if test "${LESSMETACHARS+set}" != set; then + # Work around a bug in less 394 and earlier; + # it mishandles the metacharacters '$%=~'. + space=' ' + tab=' ' + newline=' +' + LESSMETACHARS="$space$tab$newline'"';*?"()<>[|&^`#\$%=~' + export LESSMETACHARS +fi + +LESSOPEN="|gzip -cdfq -- %s"; export LESSOPEN +exec less "$@" diff --git a/beagle/debian-rfs/bin/zmore b/beagle/debian-rfs/bin/zmore new file mode 100755 index 0000000..6acee94 --- /dev/null +++ b/beagle/debian-rfs/bin/zmore @@ -0,0 +1,88 @@ +#!/bin/bash + +# Copyright (C) 2001, 2002, 2007 Free Software Foundation +# Copyright (C) 1992, 1993 Jean-loup Gailly + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +PATH="${GZIP_BINDIR-'/bin'}:$PATH"; export PATH + +version="zmore (gzip) 1.3.12 +Copyright (C) 2007 Free Software Foundation, Inc. +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +There is NO WARRANTY, to the extent permitted by law. + +Written by Jean-loup Gailly." + +usage="Usage: $0 [OPTION]... [FILE]... +Like 'more', but operate on the uncompressed contents of any compressed FILEs. + +Report bugs to <bug-gzip@gnu.org>." + +if test "`echo -n a`" = "-n a"; then + # looks like a SysV system: + n1=''; n2='\c' +else + n1='-n'; n2='' +fi +oldtty=`stty -g 2>/dev/null` +if stty -cbreak 2>/dev/null; then + cb='cbreak'; ncb='-cbreak' +else + # 'stty min 1' resets eof to ^a on both SunOS and SysV! + cb='min 1 -icanon'; ncb='icanon eof ^d' +fi +if test $? -eq 0 && test -n "$oldtty"; then + trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15 +else + trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15 +fi + +if test $# = 0; then + if test -t 0; then + echo "$usage" + else + gzip -cdfq | eval more + fi +else + FIRST=1 + for FILE + do + case $FILE in + --h*) exec echo "$usage";; + --v*) exec echo "$version";; + esac + + < "$FILE" || continue + if test $FIRST -eq 0; then + echo $n1 "--More--(Next file: $FILE)$n2" + stty $cb -echo 2>/dev/null + ANS=`dd bs=1 count=1 2>/dev/null` + stty $ncb echo 2>/dev/null + echo " " + case "$ANS" in + [eq]) exit;; + esac + fi + if test "$ANS" != 's'; then + echo "------> $FILE <------" + gzip -cdfq -- "$FILE" | more + fi + if test -t 1; then + FIRST=0 + fi + done +fi diff --git a/beagle/debian-rfs/bin/znew b/beagle/debian-rfs/bin/znew new file mode 100755 index 0000000..b46ab17 --- /dev/null +++ b/beagle/debian-rfs/bin/znew @@ -0,0 +1,183 @@ +#!/bin/bash + +# Copyright (C) 1998, 2002, 2004, 2007 Free Software Foundation +# Copyright (C) 1993 Jean-loup Gailly + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +PATH="${GZIP_BINDIR-'/bin'}:$PATH"; export PATH + +version="znew (gzip) 1.3.12 +Copyright (C) 2007 Free Software Foundation, Inc. +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +There is NO WARRANTY, to the extent permitted by law. + +Written by Jean-loup Gailly." + +usage="Usage: $0 [OPTION]... [FILE]... +Recompress files from .Z (compress) format to .gz (gzip) format. + +Options: + + -f Force recompression even if a .gz file already exists. + -t Test the new files before deleting originals. + -v Verbose; display name and statistics for each file compressed. + -9 Use the slowest compression method (optimal compression). + -P Use pipes for the conversion to reduce disk space usage. + -K Keep a .Z file when it is smaller than the .gz file. + --help display this help and exit + --version output version information and exit + +Report bugs to <bug-gzip@gnu.org>." + +check=0 +pipe=0 +opt= +files= +keep=0 +res=0 +old=0 +new=0 +block=1024 +# block is the disk block size (best guess, need not be exact) + +warn="(does not preserve modes and timestamp)" +tmp=${TMPDIR-/tmp}/zfoo.$$ +set -C +echo hi > $tmp || exit +if test -z "`(${CPMOD-cpmod} $tmp $tmp) 2>&1`"; then + cpmod=${CPMOD-cpmod} + warn="" +fi + +if test -z "$cpmod" && ${TOUCH-touch} -r $tmp $tmp 2>/dev/null; then + cpmod="${TOUCH-touch}" + cpmodarg="-r" + warn="(does not preserve file modes)" +fi + +# check if GZIP env. variable uses -S or --suffix +gzip -q $tmp +ext=`echo $tmp* | sed "s|$tmp||"` +rm -f $tmp* +if test -z "$ext"; then + echo znew: error determining gzip extension + exit 1 +fi +if test "$ext" = ".Z"; then + echo znew: cannot use .Z as gzip extension. + exit 1 +fi + +for arg +do + case "$arg" in + --help) exec echo "$usage";; + --version) exec echo "$version";; + -*) opt="$opt $arg"; shift;; + *) break;; + esac +done + +if test $# -eq 0; then + echo "$usage" + exit 1 +fi + +opt=`echo "$opt" | sed -e 's/ //g' -e 's/-//g'` +case "$opt" in + *t*) check=1; opt=`echo "$opt" | sed 's/t//g'` +esac +case "$opt" in + *K*) keep=1; opt=`echo "$opt" | sed 's/K//g'` +esac +case "$opt" in + *P*) pipe=1; opt=`echo "$opt" | sed 's/P//g'` +esac +if test -n "$opt"; then + opt="-$opt" +fi + +for i do + n=`echo $i | sed 's/.Z$//'` + if test ! -f "$n.Z" ; then + echo $n.Z not found + res=1; continue + fi + test $keep -eq 1 && old=`wc -c < "$n.Z"` + if test $pipe -eq 1; then + if gzip -d < "$n.Z" | gzip $opt > "$n$ext"; then + # Copy file attributes from old file to new one, if possible. + test -n "$cpmod" && $cpmod $cpmodarg "$n.Z" "$n$ext" 2> /dev/null + else + echo error while recompressing $n.Z + res=1; continue + fi + else + if test $check -eq 1; then + if cp -p "$n.Z" "$n.$$" 2> /dev/null || cp "$n.Z" "$n.$$"; then + : + else + echo cannot backup "$n.Z" + res=1; continue + fi + fi + if gzip -d "$n.Z"; then + : + else + test $check -eq 1 && mv "$n.$$" "$n.Z" + echo error while uncompressing $n.Z + res=1; continue + fi + if gzip $opt "$n"; then + : + else + if test $check -eq 1; then + mv "$n.$$" "$n.Z" && rm -f "$n" + echo error while recompressing $n + else + # compress $n (might be dangerous if disk full) + echo error while recompressing $n, left uncompressed + fi + res=1; continue + fi + fi + test $keep -eq 1 && new=`wc -c < "$n$ext"` + if test $keep -eq 1 && test `expr \( $old + $block - 1 \) / $block` -lt \ + `expr \( $new + $block - 1 \) / $block`; then + if test $pipe -eq 1; then + rm -f "$n$ext" + elif test $check -eq 1; then + mv "$n.$$" "$n.Z" && rm -f "$n$ext" + else + gzip -d "$n$ext" && compress "$n" && rm -f "$n$ext" + fi + echo "$n.Z smaller than $n$ext -- unchanged" + + elif test $check -eq 1; then + if gzip -t "$n$ext" ; then + rm -f "$n.$$" "$n.Z" + else + test $pipe -eq 0 && mv "$n.$$" "$n.Z" + rm -f "$n$ext" + echo error while testing $n$ext, $n.Z unchanged + res=1; continue + fi + elif test $pipe -eq 1; then + rm -f "$n.Z" + fi +done +exit $res |
