# HG changeset patch # User Paul Issott # Date 1393095049 0 # Node ID 8d01282c00935f90400ed81709f50668a91f702d # Parent 0744badda2efc7360ea68b1bd560b919b4598559 Rollback last commit - Deduplicate IS a proper word diff -r 0744badda2ef -r 8d01282c0093 tazlito --- a/tazlito Sat Feb 22 18:31:04 2014 +0000 +++ b/tazlito Sat Feb 22 18:50:49 2014 +0000 @@ -104,7 +104,7 @@ check-distro Help to check if distro is ready to release. writeiso Use running system to generate a bootable ISO (with /home). merge Merge multiple rootfs into one iso. - reduplicate Reduplicate files in a tree. + deduplicate Deduplicate files in a tree. repack Recompress rootfs into iso with maximum ratio. build-loram Generate a live-CD for low ram systems. emu-iso Emulate an ISO image with Qemu. @@ -367,8 +367,8 @@ echo 1 > /tmp/rootfs } -# Reduplicate files (MUST be on the same filesystem). -reduplicate() +# Deduplicate files (MUST be on the same filesystem). +deduplicate() { find "$@" -type f -size +0c -xdev \ -exec stat -c '%s-%a-%u-%g %i %h %n' {} \; | sort | \ @@ -404,7 +404,7 @@ cd $1 # Link duplicate files - reduplicate . + deduplicate . # Use lzma if installed. Display rootfs size in realtime. rm -f /tmp/rootfs @@ -2563,10 +2563,10 @@ echo -e "qemu $QEMU_OPTS $iso\n" qemu $QEMU_OPTS $iso ;; - reduplicate) - # Reduplicate files in a tree + deduplicate) + # Deduplicate files in a tree shift - reduplicate "$@" ;; + deduplicate "$@" ;; usage|*) # Print usage also for all unknown commands.