]> git.decadent.org.uk Git - dak.git/commitdiff
Drop support for uncompressed ls-lR file.
authorJames Troup <james@nocrew.org>
Sat, 20 May 2006 23:54:35 +0000 (18:54 -0500)
committerJames Troup <james@nocrew.org>
Sat, 20 May 2006 23:54:35 +0000 (18:54 -0500)
scripts/debian/mklslar

index c00c0651dc0f616295b43c642b9bcb4cd537c783..5d72df5f7dd5dd683dc703da46c7e136d0c18a91 100755 (executable)
@@ -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