From b33ce4c800683a9bd095f6f9f52eef118d8680f6 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 30 Jan 2006 08:12:17 +0000 Subject: [PATCH] Moved the filter_outfile() function to rsync.fns. --- testsuite/devices.test | 13 ------------- testsuite/itemize.test | 13 ------------- 2 files changed, 26 deletions(-) diff --git a/testsuite/devices.test b/testsuite/devices.test index 7b63fc9c..84a746cc 100644 --- a/testsuite/devices.test +++ b/testsuite/devices.test @@ -12,19 +12,6 @@ chkfile="$scratchdir/rsync.chk" outfile="$scratchdir/rsync.out" -# This is only called if rsync was run with -v or -vv (not -i alone). -# Higher levels of -v would require more filtering. -filter_outfile() { - sed -e '/^building file list /d' \ - -e '/^created directory /d' \ - -e '/^done$/d' \ - -e '/ --whole-file$/d' \ - -e '/^total: /d' \ - -e '/^$/,$d' \ - <"$outfile" >"$outfile.new" - mv "$outfile.new" "$outfile" -} - # Build some hardlinks case `id -u` in diff --git a/testsuite/itemize.test b/testsuite/itemize.test index d227d6c0..5df176c8 100644 --- a/testsuite/itemize.test +++ b/testsuite/itemize.test @@ -17,19 +17,6 @@ lddir="$tmpdir/ld" chkfile="$scratchdir/rsync.chk" outfile="$scratchdir/rsync.out" -# This is only called if rsync was run with -v or -vv (not -i alone). -# Higher levels of -v would require more filtering. -filter_outfile() { - sed -e '/^building file list /d' \ - -e '/^created directory /d' \ - -e '/^done$/d' \ - -e '/ --whole-file$/d' \ - -e '/^total: /d' \ - -e '/^$/,$d' \ - <"$outfile" >"$outfile.new" - mv "$outfile.new" "$outfile" -} - makepath "$fromdir/foo" makepath "$fromdir/bar/baz" cp -p "$srcdir/configure.in" "$fromdir/foo/config1" -- 2.34.1