Skip to content

Commit

Permalink
fdupes-1.50-PR2
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlopezroche authored and jobermayr committed Apr 8, 2007
1 parent cd7ecd3 commit 54c920e
Show file tree
Hide file tree
Showing 8 changed files with 477 additions and 225 deletions.
20 changes: 16 additions & 4 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,28 @@ those who've otherwise worked on that item. For a list of
contributors names and identifiers please see the CONTRIBUTORS file.


Changes from 1.40 to 1.50-PR1

- Changes to help text for clarity. [AL]
- Added selective recursion option (--recurse:). [AL]
Changes from 1.40 to 1.50-PR2

- Added "--summarize" option. [AL]
- Added "--recurse:" selective recursion option. [AL]
- Added "--noprompt" option for totally automated deletion of
duplicate files.
- Now sorts duplicates (old to new) for consistent order when
listing or deleteing duplicate files.
- Now tests for early matching of files, which should help speed up
the matching process when large files are involved.
- Added warning whenever a file cannot be deleted. [CHL, AL]
- Fixed bug where some files would not be closed after failure. [AL]
- Fixed bug where confirmmatch() function wouldn't always deal
properly with zero-length files. [AL]
- Fixed bug where progress indicator would not be cleared
when no files were found. [AL]
- Removed experimental red-black tree code (it was slower on
my system than the default code). [AL]
- Modified md5/md5.c to avoid compiler warning. [CHL]
- Changes to fdupes.c for compilation under platforms where
getopt_long is unavailable. [LR, AL]
- Changes to help text for clarity. [AL]
- Various changes and improvements to Makefile. [PB, AL]

Changes from 1.31 to 1.40
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on their contributions. Names are listed in alphabetical order.

[AB] Adrian Bridgett ([email protected])
[AL] Adrian Lopez ([email protected])
[CHL] Charles Longeau ([email protected])
[FD] Frank DENIS, a.k.a.
Jedi/Sector One, a.k.a.
Jedi/Sector One, a.k.a.
DJ Chrysalis ([email protected])
[KK] Kresimir Kukulj ([email protected])
[LB] Laurent Bonnaud ([email protected])
Expand Down
28 changes: 7 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,18 @@
#
PREFIX = /usr/local

#
# To use the md5sum program for calculating signatures (instead of the
# built in MD5 message digest routines) uncomment the following
# line (try this if you're having trouble with built in code).
#
#EXTERNAL_MD5 = -DEXTERNAL_MD5=\"md5sum\"

#
# Certain platforms do not support long options (command line options).
# To disable long options, uncomment the following line.
#
#OMIT_GETOPT_LONG = -DOMIT_GETOPT_LONG

#
# This version of fdupes can use a red-black tree structure to
# store file information. This is disabled by default, as it
# hasn't been optimized or verified correct. If you wish to
# enable this untested option, uncomment the following line.
# To use the md5sum program for calculating signatures (instead of the
# built in MD5 message digest routines) uncomment the following
# line (try this if you're having trouble with built in code).
#
#EXPERIMENTAL_RBTREE = -DEXPERIMENTAL_RBTREE
#EXTERNAL_MD5 = -DEXTERNAL_MD5=\"md5sum\"

#####################################################################
# Developer Configuration Section #
Expand All @@ -41,7 +33,7 @@ PREFIX = /usr/local
#
# VERSION determines the program's version number.
#
VERSION = 1.50-PR1
include Makefile.inc/VERSION

#
# PROGRAM_NAME determines the installation name and manual page name
Expand Down Expand Up @@ -69,15 +61,13 @@ MAN_EXT = 1
INSTALL = install # install : UCB/GNU Install compatiable
#INSTALL = ginstall

GNU_TAR = tar # tar : GNU Tar
#GNU_TAR = gtar

RM = rm -f

MKDIR = mkdir -p
#MKDIR = mkdirhier
#MKDIR = mkinstalldirs


#
# Make Configuration
#
Expand Down Expand Up @@ -114,14 +104,10 @@ install: fdupes installdirs
$(INSTALL_PROGRAM) fdupes $(BIN_DIR)/$(PROGRAM_NAME)
$(INSTALL_DATA) fdupes.1 $(MAN_DIR)/$(PROGRAM_NAME).$(MAN_EXT)

tarball: clean
$(GNU_TAR) --directory=.. -c -z -v \
-f ../fdupes-$(VERSION).tar.gz fdupes-$(VERSION)

clean:
$(RM) $(OBJECT_FILES)
$(RM) fdupes
$(RM) *~
$(RM) *~ md5/*~

love:
@echo You\'re not my type. Go find a human partner.
5 changes: 5 additions & 0 deletions Makefile.inc/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# VERSION determines the program's version number.
#

VERSION = 1.50-PR2
71 changes: 69 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,5 +1,72 @@
- Add option to highlight or identify symlinked files.
- Verify correctness of red-black tree algorithm. Optimize.
- A bug with -S shows wrong results.

- A bug causes the following behavior:

$ fdupes --symlinks testdir
testdir/with spaces b
testdir/with spaces a

testdir/zero_b
testdir/zero_a

testdir/symlink_two
testdir/twice_one

$ cp testdir/two testdir/two_again
$ fdupes --symlinks testdir
testdir/two_again
testdir/two
testdir/twice_one
testdir/symlink_two

testdir/with spaces b
testdir/with spaces a

testdir/zero_b
testdir/zero_a

** This is not the desired behavior. Likewise:

$ fdupes testdir
testdir/with spaces b
testdir/with spaces a

testdir/zero_b
testdir/zero_a

testdir/twice_one
testdir/two

$ fdupes --symlinks testdir
testdir/with spaces b
testdir/with spaces a

testdir/zero_b
testdir/zero_a

testdir/symlink_two
testdir/twice_one

- Don't assume that stat always works.

- Add partial checksumming where instead of MD5ing whole
files we MD5 and compare every so many bytes, caching
these partial results for subsequent comparisons.

- Option -R should not have to be separated from the rest,
such that "fdupes -dR testdir", "fdupes -d -R testdir",
"fdupes -Rd testdir", etc., all yield the same results.

- Add option to highlight or identify symlinked files (suggest
using --classify to identify symlinks with @ suffix... when
specified, files containing @ are listed using \@).

- Consider autodeletion option without user intervention.

- Consider option to match only to files in specific directory.

- Do a little commenting, to avoid rolling eyes and/or snickering.

- Fix problem where MD5 collisions will result in one of the
files not being registered (causing it to be ignored).

4 changes: 4 additions & 0 deletions fdupes.1
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ prompt user for files to preserve, deleting all others (see
.B CAVEATS
below)
.TP
.B -N --noprompt
when used together with --delete, preserve the first file in each
set of duplicates and delete the others without prompting the user
.TP
.B -v --version
display fdupes version
.TP
Expand Down
Loading

0 comments on commit 54c920e

Please sign in to comment.