Skip to content

Commit

Permalink
svn r91
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanheaven committed Mar 31, 2011
0 parents commit d8fe578
Show file tree
Hide file tree
Showing 62 changed files with 6,269 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
@@ -0,0 +1 @@
Tristan Heaven <tristanheaven@gmail.com>
339 changes: 339 additions & 0 deletions COPYING

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions ChangeLog
@@ -0,0 +1,4 @@
Most noticable changes are mentioned in the NEWS file.

If you're looking for a more complete list, start here:
http://gtkhash.sourceforge.net/
9 changes: 9 additions & 0 deletions Makefile.am
@@ -0,0 +1,9 @@
if ENABLE_NLS
SUBDIRS = data src po
else
SUBDIRS = data src
endif

ACLOCAL_AMFLAGS = -I m4 --install

EXTRA_DIST = autogen.sh
21 changes: 21 additions & 0 deletions NEWS
@@ -0,0 +1,21 @@
Summary of changes for each release:

0.4.0 -
* Added support for hashing remote files using GIO
* General usability improvements

0.3.0 - 2009-11-22
* Added optional Nautilus (GNOME file manager) extension

0.2.1 - 2008-12-31
* Fixed progress bar display for large files
* Removed dependency on libglade

0.2.0 - 2007-08-14
* Added file list mode for hashing multiple files

0.1.1 - 2007-07-21
* Added gettext support

0.1.0 - 2007-06-29
* Initial release
12 changes: 12 additions & 0 deletions README
@@ -0,0 +1,12 @@
GtkHash is a GTK+ utility for computing message digests or checksums using
the mhash library.

http://gtkhash.sourceforge.net/

Dependencies:
Required: mhash, GTK+ 2
Optional (Nautilus extension): Nautilus, GConf

Translations:
Please submit any new or updated translations here:
https://translations.launchpad.net/gtkhash
4 changes: 4 additions & 0 deletions TODO
@@ -0,0 +1,4 @@
* Uppercase/Lowercase output option
* Digest compare/check/verify (Need UI ideas)
* Drag and drop integration
* Multithreaded hashing
12 changes: 12 additions & 0 deletions autogen.sh
@@ -0,0 +1,12 @@
#!/bin/sh

set -e
set -x

[ -f autogen.sh ]

[ ! -d m4 ] && mkdir m4

glib-gettextize --copy --force
intltoolize --automake --copy --force
autoreconf --force --install --warnings=all
91 changes: 91 additions & 0 deletions configure.ac
@@ -0,0 +1,91 @@
AC_PREREQ(2.61)
AC_INIT(GtkHash, 0.4.0)
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_SRCDIR(src/main.c)
AC_CONFIG_MACRO_DIR(m4)
AM_INIT_AUTOMAKE

AC_PROG_CC_C99
AM_PROG_CC_C_O
LT_INIT

AX_CFLAGS_GCC_OPTION(-pedantic)
AX_CFLAGS_GCC_OPTION(-Wall)
AX_CFLAGS_GCC_OPTION(-Wextra)

AX_CFLAGS_GCC_OPTION(-Waggregate-return)
AX_CFLAGS_GCC_OPTION(-Wbad-function-cast)
AX_CFLAGS_GCC_OPTION(-Wcast-align)
AX_CFLAGS_GCC_OPTION(-Wfloat-equal)
AX_CFLAGS_GCC_OPTION(-Wlogical-op)
AX_CFLAGS_GCC_OPTION(-Wmissing-declarations)
AX_CFLAGS_GCC_OPTION(-Wmissing-noreturn)
AX_CFLAGS_GCC_OPTION(-Wredundant-decls)
AX_CFLAGS_GCC_OPTION(-Wshadow)
AX_CFLAGS_GCC_OPTION(-Wswitch-default)
AX_CFLAGS_GCC_OPTION(-Wwrite-strings)

PKG_PROG_PKG_CONFIG

AC_CHECK_LIB(mhash, mhash, :, AC_MSG_ERROR(mhash library not found))
MHASH_LIBS="-lmhash"
AC_SUBST(MHASH_LIBS)

PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
AC_SUBST(GTHREAD_CFLAGS)
AC_SUBST(GTHREAD_LIBS)

PKG_CHECK_MODULES(GDK, gdk-2.0)
AC_SUBST(GDK_CFLAGS)
AC_SUBST(GDK_LIBS)

PKG_CHECK_MODULES(GTK, gtk+-2.0)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)

AC_ARG_ENABLE(nautilus, AS_HELP_STRING(--disable-nautilus, disable building the nautilus extension))
AM_CONDITIONAL(ENABLE_NAUTILUS, test "${enable_nautilus}" != "no")
AM_GCONF_SOURCE_2

if test "${enable_nautilus}" != "no" ; then
# Check for nautilus
PKG_CHECK_MODULES(NAUTILUS, libnautilus-extension)
AC_SUBST(NAUTILUS_CFLAGS)
AC_SUBST(NAUTILUS_LIBS)
NAUTILUS_EXTENSION_DIR=`${PKG_CONFIG} --variable=extensiondir libnautilus-extension`
AC_SUBST(NAUTILUS_EXTENSION_DIR)

# Check for gconf
PKG_CHECK_MODULES(GCONF, gconf-2.0)
AC_SUBST(GCONF_CFLAGS)
AC_SUBST(GCONF_LIBS)
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
if test "${GCONFTOOL}" = "no" ; then
AC_MSG_ERROR(gconftool-2 not found)
fi
fi

AM_CONDITIONAL(ENABLE_NLS, test "${enable_nls}" != "no")

if test "${enable_nls}" = "no" ; then
AC_DEFINE_UNQUOTED(ENABLE_NLS, 0)
else
GETTEXT_PACKAGE="${PACKAGE}"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "${GETTEXT_PACKAGE}", Define the gettext package)
IT_PROG_INTLTOOL(0.40.6)
AM_GLIB_GNU_GETTEXT
fi

AC_DEFINE_UNQUOTED(FILE_BUFFER_SIZE, 131072, Define file buffer size)
AC_DEFINE_UNQUOTED(G_LOG_DOMAIN, "${PACKAGE_NAME}", Define the Glib log domain)

AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(data/Makefile)
AC_CONFIG_FILES(data/nautilus/Makefile)
AC_CONFIG_FILES(po/Makefile.in)
AC_CONFIG_FILES(src/Makefile)
AC_CONFIG_FILES(src/hash/Makefile)
AC_CONFIG_FILES(src/hash/mutils/Makefile)
AC_CONFIG_FILES(src/nautilus/Makefile)
AC_OUTPUT
6 changes: 6 additions & 0 deletions data/Makefile.am
@@ -0,0 +1,6 @@
if ENABLE_NAUTILUS
SUBDIRS = nautilus
endif

pkgdata_DATA = gtkhash.xml
EXTRA_DIST = gtkhash.xml

0 comments on commit d8fe578

Please sign in to comment.