diff options
| author | Manuel Traut <manut@mecka.net> | 2013-03-10 12:13:49 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2013-03-10 12:13:49 +0100 |
| commit | 9c0f862749f30800837a45aff5abdcb529867dbc (patch) | |
| tree | b0ca51fff64f12fac03aea4afaa1fa722376844b /beagle/debian-rfs/bin | |
| parent | 33b79c725448efd2c9a72e2ae9a1fb04270492f5 (diff) | |
| parent | cea5039322781f6085dd47954af5584ca3f78911 (diff) | |
Merge branch 'schulung'
updates from current linutronix schulung.git
Conflicts:
Makefile
configpres.tex
flash-memory/ubi/handout_ubi_de.tex
handout.tex
index.txt
pres_master.tex
vorl.tex
vorl1.tex
vorl2.tex
vorl3.tex
vorl4.tex
vorl5.tex
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'beagle/debian-rfs/bin')
68 files changed, 0 insertions, 1078 deletions
diff --git a/beagle/debian-rfs/bin/bash b/beagle/debian-rfs/bin/bash Binary files differdeleted file mode 100755 index ff11d78..0000000 --- a/beagle/debian-rfs/bin/bash +++ /dev/null diff --git a/beagle/debian-rfs/bin/cat b/beagle/debian-rfs/bin/cat Binary files differdeleted file mode 100755 index 66c2361..0000000 --- a/beagle/debian-rfs/bin/cat +++ /dev/null diff --git a/beagle/debian-rfs/bin/chgrp b/beagle/debian-rfs/bin/chgrp Binary files differdeleted file mode 100755 index 4dc4fcc..0000000 --- a/beagle/debian-rfs/bin/chgrp +++ /dev/null diff --git a/beagle/debian-rfs/bin/chmod b/beagle/debian-rfs/bin/chmod Binary files differdeleted file mode 100755 index baa72d4..0000000 --- a/beagle/debian-rfs/bin/chmod +++ /dev/null diff --git a/beagle/debian-rfs/bin/chown b/beagle/debian-rfs/bin/chown Binary files differdeleted file mode 100755 index 1fcd6ab..0000000 --- a/beagle/debian-rfs/bin/chown +++ /dev/null diff --git a/beagle/debian-rfs/bin/cp b/beagle/debian-rfs/bin/cp Binary files differdeleted file mode 100755 index 0e5c98d..0000000 --- a/beagle/debian-rfs/bin/cp +++ /dev/null diff --git a/beagle/debian-rfs/bin/dash b/beagle/debian-rfs/bin/dash Binary files differdeleted file mode 100755 index 9dc72bc..0000000 --- a/beagle/debian-rfs/bin/dash +++ /dev/null diff --git a/beagle/debian-rfs/bin/date b/beagle/debian-rfs/bin/date Binary files differdeleted file mode 100755 index 1320f00..0000000 --- a/beagle/debian-rfs/bin/date +++ /dev/null diff --git a/beagle/debian-rfs/bin/dd b/beagle/debian-rfs/bin/dd Binary files differdeleted file mode 100755 index 90dc11d..0000000 --- a/beagle/debian-rfs/bin/dd +++ /dev/null diff --git a/beagle/debian-rfs/bin/df b/beagle/debian-rfs/bin/df Binary files differdeleted file mode 100755 index 86ca256..0000000 --- a/beagle/debian-rfs/bin/df +++ /dev/null diff --git a/beagle/debian-rfs/bin/dir b/beagle/debian-rfs/bin/dir Binary files differdeleted file mode 100755 index 6dfb0da..0000000 --- a/beagle/debian-rfs/bin/dir +++ /dev/null diff --git a/beagle/debian-rfs/bin/dmesg b/beagle/debian-rfs/bin/dmesg Binary files differdeleted file mode 100755 index 7d0200e..0000000 --- a/beagle/debian-rfs/bin/dmesg +++ /dev/null diff --git a/beagle/debian-rfs/bin/dnsdomainname b/beagle/debian-rfs/bin/dnsdomainname Binary files differdeleted file mode 100755 index 1e4f9a3..0000000 --- a/beagle/debian-rfs/bin/dnsdomainname +++ /dev/null diff --git a/beagle/debian-rfs/bin/domainname b/beagle/debian-rfs/bin/domainname Binary files differdeleted file mode 100755 index 1e4f9a3..0000000 --- a/beagle/debian-rfs/bin/domainname +++ /dev/null diff --git a/beagle/debian-rfs/bin/echo b/beagle/debian-rfs/bin/echo Binary files differdeleted file mode 100755 index 27b70eb..0000000 --- a/beagle/debian-rfs/bin/echo +++ /dev/null diff --git a/beagle/debian-rfs/bin/egrep b/beagle/debian-rfs/bin/egrep Binary files differdeleted file mode 100755 index 735306a..0000000 --- a/beagle/debian-rfs/bin/egrep +++ /dev/null diff --git a/beagle/debian-rfs/bin/false b/beagle/debian-rfs/bin/false Binary files differdeleted file mode 100755 index f389bac..0000000 --- a/beagle/debian-rfs/bin/false +++ /dev/null diff --git a/beagle/debian-rfs/bin/fgrep b/beagle/debian-rfs/bin/fgrep Binary files differdeleted file mode 100755 index c0f00f3..0000000 --- a/beagle/debian-rfs/bin/fgrep +++ /dev/null diff --git a/beagle/debian-rfs/bin/grep b/beagle/debian-rfs/bin/grep Binary files differdeleted file mode 100755 index 54bd9f6..0000000 --- a/beagle/debian-rfs/bin/grep +++ /dev/null diff --git a/beagle/debian-rfs/bin/gunzip b/beagle/debian-rfs/bin/gunzip deleted file mode 100755 index 072bead..0000000 --- a/beagle/debian-rfs/bin/gunzip +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -PATH=${GZIP_BINDIR-'/bin'}:$PATH -exec gzip -d "$@" diff --git a/beagle/debian-rfs/bin/gzexe b/beagle/debian-rfs/bin/gzexe deleted file mode 100755 index b72741e..0000000 --- a/beagle/debian-rfs/bin/gzexe +++ /dev/null @@ -1,229 +0,0 @@ -#!/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 differdeleted file mode 100755 index 9038edc..0000000 --- a/beagle/debian-rfs/bin/gzip +++ /dev/null diff --git a/beagle/debian-rfs/bin/hostname b/beagle/debian-rfs/bin/hostname Binary files differdeleted file mode 100755 index 1e4f9a3..0000000 --- a/beagle/debian-rfs/bin/hostname +++ /dev/null diff --git a/beagle/debian-rfs/bin/ln b/beagle/debian-rfs/bin/ln Binary files differdeleted file mode 100755 index ef8c6c8..0000000 --- a/beagle/debian-rfs/bin/ln +++ /dev/null diff --git a/beagle/debian-rfs/bin/login b/beagle/debian-rfs/bin/login Binary files differdeleted file mode 100755 index 84b70cc..0000000 --- a/beagle/debian-rfs/bin/login +++ /dev/null diff --git a/beagle/debian-rfs/bin/ls b/beagle/debian-rfs/bin/ls Binary files differdeleted file mode 100755 index 3de8693..0000000 --- a/beagle/debian-rfs/bin/ls +++ /dev/null diff --git a/beagle/debian-rfs/bin/mkdir b/beagle/debian-rfs/bin/mkdir Binary files differdeleted file mode 100755 index ebbaaff..0000000 --- a/beagle/debian-rfs/bin/mkdir +++ /dev/null diff --git a/beagle/debian-rfs/bin/mknod b/beagle/debian-rfs/bin/mknod Binary files differdeleted file mode 100755 index bbc61f8..0000000 --- a/beagle/debian-rfs/bin/mknod +++ /dev/null diff --git a/beagle/debian-rfs/bin/mktemp b/beagle/debian-rfs/bin/mktemp Binary files differdeleted file mode 100755 index f1c70b0..0000000 --- a/beagle/debian-rfs/bin/mktemp +++ /dev/null diff --git a/beagle/debian-rfs/bin/more b/beagle/debian-rfs/bin/more Binary files differdeleted file mode 100755 index 6596a63..0000000 --- a/beagle/debian-rfs/bin/more +++ /dev/null diff --git a/beagle/debian-rfs/bin/mount b/beagle/debian-rfs/bin/mount Binary files differdeleted file mode 100755 index 9238343..0000000 --- a/beagle/debian-rfs/bin/mount +++ /dev/null diff --git a/beagle/debian-rfs/bin/mountpoint b/beagle/debian-rfs/bin/mountpoint Binary files differdeleted file mode 100755 index 0b15539..0000000 --- a/beagle/debian-rfs/bin/mountpoint +++ /dev/null diff --git a/beagle/debian-rfs/bin/mv b/beagle/debian-rfs/bin/mv Binary files differdeleted file mode 100755 index 640f61f..0000000 --- a/beagle/debian-rfs/bin/mv +++ /dev/null diff --git a/beagle/debian-rfs/bin/nisdomainname b/beagle/debian-rfs/bin/nisdomainname Binary files differdeleted file mode 100755 index 1e4f9a3..0000000 --- a/beagle/debian-rfs/bin/nisdomainname +++ /dev/null diff --git a/beagle/debian-rfs/bin/pidof b/beagle/debian-rfs/bin/pidof deleted file mode 120000 index bca2a3a..0000000 --- a/beagle/debian-rfs/bin/pidof +++ /dev/null @@ -1 +0,0 @@ -/sbin/killall5
\ No newline at end of file diff --git a/beagle/debian-rfs/bin/pwd b/beagle/debian-rfs/bin/pwd Binary files differdeleted file mode 100755 index 624ed0d..0000000 --- a/beagle/debian-rfs/bin/pwd +++ /dev/null diff --git a/beagle/debian-rfs/bin/rbash b/beagle/debian-rfs/bin/rbash deleted file mode 120000 index f4d7fa5..0000000 --- a/beagle/debian-rfs/bin/rbash +++ /dev/null @@ -1 +0,0 @@ -bash
\ No newline at end of file diff --git a/beagle/debian-rfs/bin/readlink b/beagle/debian-rfs/bin/readlink Binary files differdeleted file mode 100755 index 3e2c1ab..0000000 --- a/beagle/debian-rfs/bin/readlink +++ /dev/null diff --git a/beagle/debian-rfs/bin/rm b/beagle/debian-rfs/bin/rm Binary files differdeleted file mode 100755 index ee8021f..0000000 --- a/beagle/debian-rfs/bin/rm +++ /dev/null diff --git a/beagle/debian-rfs/bin/rmdir b/beagle/debian-rfs/bin/rmdir Binary files differdeleted file mode 100755 index 6d8e2e2..0000000 --- a/beagle/debian-rfs/bin/rmdir +++ /dev/null diff --git a/beagle/debian-rfs/bin/run-parts b/beagle/debian-rfs/bin/run-parts Binary files differdeleted file mode 100755 index e6d1c38..0000000 --- a/beagle/debian-rfs/bin/run-parts +++ /dev/null diff --git a/beagle/debian-rfs/bin/sed b/beagle/debian-rfs/bin/sed Binary files differdeleted file mode 100755 index c1775d7..0000000 --- a/beagle/debian-rfs/bin/sed +++ /dev/null diff --git a/beagle/debian-rfs/bin/sh b/beagle/debian-rfs/bin/sh deleted file mode 120000 index 7e03e4f..0000000 --- a/beagle/debian-rfs/bin/sh +++ /dev/null @@ -1 +0,0 @@ -dash
\ No newline at end of file diff --git a/beagle/debian-rfs/bin/sleep b/beagle/debian-rfs/bin/sleep Binary files differdeleted file mode 100755 index 48880ed..0000000 --- a/beagle/debian-rfs/bin/sleep +++ /dev/null diff --git a/beagle/debian-rfs/bin/stty b/beagle/debian-rfs/bin/stty Binary files differdeleted file mode 100755 index 52e7e9e..0000000 --- a/beagle/debian-rfs/bin/stty +++ /dev/null diff --git a/beagle/debian-rfs/bin/su b/beagle/debian-rfs/bin/su Binary files differdeleted file mode 100755 index e19699b..0000000 --- a/beagle/debian-rfs/bin/su +++ /dev/null diff --git a/beagle/debian-rfs/bin/sync b/beagle/debian-rfs/bin/sync Binary files differdeleted file mode 100755 index 7170210..0000000 --- a/beagle/debian-rfs/bin/sync +++ /dev/null diff --git a/beagle/debian-rfs/bin/tailf b/beagle/debian-rfs/bin/tailf Binary files differdeleted file mode 100755 index bda4022..0000000 --- a/beagle/debian-rfs/bin/tailf +++ /dev/null diff --git a/beagle/debian-rfs/bin/tar b/beagle/debian-rfs/bin/tar Binary files differdeleted file mode 100755 index dade48c..0000000 --- a/beagle/debian-rfs/bin/tar +++ /dev/null diff --git a/beagle/debian-rfs/bin/tempfile b/beagle/debian-rfs/bin/tempfile Binary files differdeleted file mode 100755 index fd4c7ee..0000000 --- a/beagle/debian-rfs/bin/tempfile +++ /dev/null diff --git a/beagle/debian-rfs/bin/touch b/beagle/debian-rfs/bin/touch Binary files differdeleted file mode 100755 index 5115bcd..0000000 --- a/beagle/debian-rfs/bin/touch +++ /dev/null diff --git a/beagle/debian-rfs/bin/true b/beagle/debian-rfs/bin/true Binary files differdeleted file mode 100755 index a74dfe6..0000000 --- a/beagle/debian-rfs/bin/true +++ /dev/null diff --git a/beagle/debian-rfs/bin/umount b/beagle/debian-rfs/bin/umount Binary files differdeleted file mode 100755 index 91074eb..0000000 --- a/beagle/debian-rfs/bin/umount +++ /dev/null diff --git a/beagle/debian-rfs/bin/uname b/beagle/debian-rfs/bin/uname Binary files differdeleted file mode 100755 index 34f3e70..0000000 --- a/beagle/debian-rfs/bin/uname +++ /dev/null diff --git a/beagle/debian-rfs/bin/uncompress b/beagle/debian-rfs/bin/uncompress deleted file mode 100755 index 072bead..0000000 --- a/beagle/debian-rfs/bin/uncompress +++ /dev/null @@ -1,3 +0,0 @@ -#!/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 differdeleted file mode 100755 index bb9f3d5..0000000 --- a/beagle/debian-rfs/bin/vdir +++ /dev/null diff --git a/beagle/debian-rfs/bin/which b/beagle/debian-rfs/bin/which deleted file mode 100755 index 5b2329d..0000000 --- a/beagle/debian-rfs/bin/which +++ /dev/null @@ -1,63 +0,0 @@ -#! /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 differdeleted file mode 100755 index 1e4f9a3..0000000 --- a/beagle/debian-rfs/bin/ypdomainname +++ /dev/null diff --git a/beagle/debian-rfs/bin/zcat b/beagle/debian-rfs/bin/zcat deleted file mode 100755 index 50ec10f..0000000 --- a/beagle/debian-rfs/bin/zcat +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -PATH=${GZIP_BINDIR-'/bin'}:$PATH -exec gzip -cd "$@" diff --git a/beagle/debian-rfs/bin/zcmp b/beagle/debian-rfs/bin/zcmp deleted file mode 100755 index 2059ccc..0000000 --- a/beagle/debian-rfs/bin/zcmp +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -PATH=${GZIP_BINDIR-'/bin'}:$PATH -exec zdiff --__cmp "$@" diff --git a/beagle/debian-rfs/bin/zdiff b/beagle/debian-rfs/bin/zdiff deleted file mode 100755 index 5e1ae01..0000000 --- a/beagle/debian-rfs/bin/zdiff +++ /dev/null @@ -1,161 +0,0 @@ -#!/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 deleted file mode 100755 index d6a8424..0000000 --- a/beagle/debian-rfs/bin/zegrep +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -PATH=${GZIP_BINDIR-'/bin'}:$PATH -exec zgrep -E "$@" diff --git a/beagle/debian-rfs/bin/zfgrep b/beagle/debian-rfs/bin/zfgrep deleted file mode 100755 index cfae653..0000000 --- a/beagle/debian-rfs/bin/zfgrep +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -PATH=${GZIP_BINDIR-'/bin'}:$PATH -exec zgrep -F "$@" diff --git a/beagle/debian-rfs/bin/zforce b/beagle/debian-rfs/bin/zforce deleted file mode 100755 index 02733ef..0000000 --- a/beagle/debian-rfs/bin/zforce +++ /dev/null @@ -1,71 +0,0 @@ -#!/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 deleted file mode 100755 index 0937ac3..0000000 --- a/beagle/debian-rfs/bin/zgrep +++ /dev/null @@ -1,209 +0,0 @@ -#!/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 deleted file mode 100755 index f335012..0000000 --- a/beagle/debian-rfs/bin/zless +++ /dev/null @@ -1,53 +0,0 @@ -#!/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 deleted file mode 100755 index 6acee94..0000000 --- a/beagle/debian-rfs/bin/zmore +++ /dev/null @@ -1,88 +0,0 @@ -#!/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 deleted file mode 100755 index b46ab17..0000000 --- a/beagle/debian-rfs/bin/znew +++ /dev/null @@ -1,183 +0,0 @@ -#!/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 |
