Skip to content

Commit

Permalink
Add ncurses interface and necessary build files.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlopezroche committed Jul 19, 2018
1 parent ac468d9 commit a74d7f1
Show file tree
Hide file tree
Showing 31 changed files with 3,789 additions and 169 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
fdupes
*.o
/Makefile
/Makefile.in
/aclocal.m4
/autom4te.cache
/compile
/config.h
/config.h.in
/config.log
/config.status
/configure
/depcomp
/install-sh
/missing
/stamp-h1
.deps
.dirstamp
52 changes: 30 additions & 22 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
Installing fdupes
--------------------------------------------------------------------
To install the program, issue the following commands:

make fdupes
su root
make install

This will install the program in /usr/local/bin. You may change this
to a different location by editing the Makefile. Please refer to
the Makefile for an explanation of compile-time options. If you're
having trouble compiling, please take a look at the Makefile.

UPGRADING NOTE: When upgrading from a version prior to 1.2, it should
be noted that the default installation directory for the fdupes man
page has changed from "/usr/man" to "/usr/local/man". If installing
to the default location you should delete the old man page before
proceeding. This file would be named "/usr/man/man1/fdupes.1".

A test directory is included so that you may familiarise yourself
with the way fdupes operates. You may test the program before
installing it by issuing a command such as "./fdupes testdir"
or "./fdupes -r testdir", just to name a couple of examples. Refer
to the documentation for information on valid options.
You're looking at a DEVELOPMENT version of fdupes. If you're not a software
developer or you just want to install the program, this is probably not the
version you want. This version of fdupes is currently in development and
subject to change. The features and functionality present in this version
may not reflect the features and functionality in the final release.

The easiest way to install fdupes is to use your operating system's package
manager, if available. If that's not an option or you'd prefer to compile
the program yourself (which may sometimes be the only way to obtain the
latest version), you should download a RELEASE version of fdupes and follow
the installation instructions provided with it.

As of this writing, fdupes releases may be downloaded from:

https://github.com/adrianlopezroche/fdupes/releases

If you're a programmer and you wish to use or work on this version of fdupes
you will need to install autoconf and automake on your system and run

autoreconf --install

to generate the configure script and other files needed for compilation and
installation. After that you may compile fdupes by running:

./configure
make

and install it by running:

sudo make install

44 changes: 44 additions & 0 deletions INSTALL.enduser
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Installing fdupes
--------------------------------------------------------------------
To build and install the program, issue the following commands:

./configure
make
sudo make install

Starting with fdupes 2.0.0, a full-featured installation requires
the following libraries to be installed on your system:

- ncursesw (ncurses with support for wide characters)
- PCRE2 (Perl Compatible Regular Expressions library)

Source code for these libraries is available at:

https://www.gnu.org/software/ncurses/
https://www.pcre.org/

If these libraries are not available on your system or you want to
build fdupes without them, you may instead call configure as:

./configure --without-ncurses

followed by "make" and "sudo make install" as before.

Please note that compiling fdupes without these libraries will
disable the new screen-mode interface for choosing which files to
keep or delete. Without them, fdupes will use an interface like
the one used in previous versions.

The commands above will build and install fdupes and its
documentation under /usr/local by default. You may change the
install location using:

./configure --prefix=/your/chosen/path

followed by "make" and "sudo make install" as before.

A test directory is included so that you may familiarise yourself
with the way fdupes operates. You may test the program before
installing it by issuing a command such as "./fdupes testdir"
or "./fdupes -r testdir", just to name a couple of examples. Refer
to the documentation for information on valid options.
112 changes: 0 additions & 112 deletions Makefile

This file was deleted.

16 changes: 16 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bin_PROGRAMS = fdupes

if NO_NCURSES
fdupes_SOURCES = fdupes.c errormsg.c md5/md5.c fdupes.h errormsg.h md5/md5.h
notrans_dist_man1_MANS = fdupes.1

else
fdupes_SOURCES = fdupes.c ncurses-commands.c ncurses-getcommand.c ncurses-interface.c ncurses-print.c ncurses-prompt.c ncurses-status.c commandidentifier.c errormsg.c wcs.c md5/md5.c fdupes.h ncurses-commands.h ncurses-getcommand.h ncurses-interface.h ncurses-print.h ncurses-prompt.h ncurses-status.h commandidentifier.h errormsg.h wcs.h filegroup.h md5/md5.h
dist_man1_MANS = fdupes.1 fdupes-help.1

endif

EXTRA_DIST = testdir CHANGES CONTRIBUTORS

dist-hook:
if [ -f $(top_srcdir)/INSTALL.enduser ]; then chmod u+w $(distdir)/INSTALL; \cp -f $(top_srcdir)/INSTALL.enduser $(distdir)/INSTALL; fi
5 changes: 0 additions & 5 deletions Makefile.inc/VERSION

This file was deleted.

4 changes: 3 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Usage: fdupes [options] DIRECTORY...
with -s or --symlinks, or when specifying a
particular directory more than once; refer to the
fdupes documentation for additional information
-P --plain with --delete, use line-based prompt (as with older
versions of fdupes) instead of screen-mode interface
-N --noprompt together with --delete, preserve the first file in
each set of duplicates and delete the rest without
prompting the user
Expand Down Expand Up @@ -71,7 +73,7 @@ email: [email protected]

Legal Information
--------------------------------------------------------------------
FDUPES Copyright (c) 1999 Adrian Lopez
FDUPES Copyright (c) 1999-2018 Adrian Lopez

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
Expand Down
Loading

0 comments on commit a74d7f1

Please sign in to comment.