mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
7b304aa9de
slower but more portable than using ls
12 lines
566 B
Plaintext
12 lines
566 B
Plaintext
--- thumbnail_index.orig Tue Aug 11 03:51:55 1998
|
|
+++ thumbnail_index Sat Jun 16 17:56:31 2001
|
|
@@ -248,7 +248,7 @@
|
|
EOF
|
|
)
|
|
fi
|
|
- kb=`ls -l "$file" | awk '{print int(($4+1023)/1024)}'`
|
|
+ kb=`wc -c < "$file" | awk '{print int(($1+1023)/1024)}'`
|
|
echo "<TD ALIGN=CENTER><TABLE><TR><TD ALIGN=CENTER><A HREF=\"$file\"><IMG BORDER=0 WIDTH=20 HEIGHT=22 SRC=\"$subdir/.file.gif\"></A></TD></TR><TR><TD ALIGN=CENTER><SMALL><A HREF=\"$file\">$file</A></SMALL></TD></TR><TR><TD ALIGN=CENTER><SMALL>${kb}K</SMALL></TD></TR></TABLE></TD>"
|
|
fi
|
|
;;
|