livecd-rootfs (0.38) gutsy; urgency=low

* Avoid the ${ROOT} prefix in fdupes output, compact and sort the output.

 -- Matthias Klose <doko@ubuntu.com>  Thu, 04 Oct 2007 10:13:48 +0200
ubuntu/precise
Matthias Klose 17 years ago
parent 939c1b6d0b
commit b999d7424b

6
debian/changelog vendored

@ -1,3 +1,9 @@
livecd-rootfs (0.38) gutsy; urgency=low
* Avoid the ${ROOT} prefix in fdupes output, compact and sort the output.
-- Matthias Klose <doko@ubuntu.com> Thu, 04 Oct 2007 10:13:48 +0200
livecd-rootfs (0.37) gutsy; urgency=low livecd-rootfs (0.37) gutsy; urgency=low
* Run fdupes on ${ROOT}/usr. * Run fdupes on ${ROOT}/usr.

@ -383,8 +383,14 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP}
# search for duplicate files, write the summary to stdout, # search for duplicate files, write the summary to stdout,
if which fdupes >/dev/null 2>&1; then if which fdupes >/dev/null 2>&1; then
echo "first line: <total size for dupes> <different dupes> <all dupes>"
echo "data lines: <size for dupes> <number of dupes> <filename> [<filename> ...]"
echo BEGIN fdupes echo BEGIN fdupes
fdupes --recurse --noempty --sameline --size --quiet ${ROOT}/usr (cd $ROOT \
&& fdupes --recurse --noempty --sameline --size --quiet usr \
| awk '/bytes each/ {s=$1} /^usr/ { n+=1; n2+=NF-1; sum+=s*(NF-1); print s*(NF-1),size, NF, $0 } END {print sum, n, n2}' \
| sort -nr
)
echo END fdupes echo END fdupes
fi fi

Loading…
Cancel
Save