Porting uuencode/uudecode from NetBSD

Lionel: I fixed small mistakes in the mi file, typos, missing keywords,
        and whitespace fixes.

Change-Id: If0c04b923af328838f2d0950e189bf28995bc0f0
This commit is contained in:
Sky Liu
2014-09-08 19:51:28 +02:00
committed by sambuc
parent 31b808b8fa
commit 2fde3a4846
17 changed files with 884 additions and 904 deletions
+8 -8
View File
@@ -282,20 +282,20 @@ END
tsort <x >y
if cmp -s y answer; then : ; else bomb "Error on tsort test 1"; fi
#Test uue/uud
#Test uuencode/uudecode
cp $f x
uue x
if test -s x.uue; then : ; else bomb "Error on uue/uud test 1"; fi
uuencode x x > x.uue
if test -s x.uue; then : ; else bomb "Error on uuencode/uudecode test 1"; fi
rm x
uud x.uue
if cmp -s x $f; then : ; else bomb "Error on uue/uud test 2"; fi
uudecode x.uue
if cmp -s x $f; then : ; else bomb "Error on uuencode/uudecode test 2"; fi
compress -fc x >x.Z 2>/dev/null
uue x.Z
uuencode x.Z x.Z > x.Z.uue
rm x x.Z
uud x.uue
uudecode x.Z.uue
compress -cd x.Z >x
if cmp -s x $f; then : ; else bomb "Error on uue/uud test 3"; fi
if cmp -s x $f; then : ; else bomb "Error on uuencode/uudecode test 3"; fi
cd ..
rm -rf $TESTDIR