From 019a64264d405d429e04660dabc563e5f0b86ffa Mon Sep 17 00:00:00 2001 From: James Troup Date: Sat, 20 May 2006 18:54:35 -0500 Subject: [PATCH] Drop support for uncompressed ls-lR file. --- scripts/debian/mklslar | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/debian/mklslar b/scripts/debian/mklslar index c00c0651..5d72df5f 100755 --- a/scripts/debian/mklslar +++ b/scripts/debian/mklslar @@ -23,14 +23,15 @@ echo "Creating recursive directory listing ... " rm -f .$filename.new TZ=UTC ls -lR | grep -v Archive_Maintenance_In_Progress > .$filename.new -if [ -r $filename ] ; then - mv -f $filename $filename.old +if [ -r ${filename}.gz ] ; then + mv -f ${filename}.gz $filename.old.gz mv -f .$filename.new $filename rm -f $filename.patch.gz - diff -u $filename.old $filename | gzip -9cfn - >$filename.patch.gz - rm -f $filename.old + zcat $filename.old.gz | diff -u - $filename | gzip -9cfn - >$filename.patch.gz + rm -f $filename.old.gz else mv -f .$filename.new $filename fi gzip -9cfN $filename >$filename.gz +rm -f $filename -- 2.39.5