Apply autotools.diff from debian packaging, adds autotools required files such as...
authorNick Downing <nick@ndcode.org>
Mon, 5 Nov 2018 22:32:24 +0000 (09:32 +1100)
committerNick Downing <nick@ndcode.org>
Mon, 5 Nov 2018 22:32:50 +0000 (09:32 +1100)
AUTHORS [new file with mode: 0644]
COPYING [new file with mode: 0644]
ChangeLog [new file with mode: 0644]
Makefile.am
NEWS [new file with mode: 0644]
configure.ac

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..b31f371
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,11 @@
+Authors list taken from: http://www.seg.rmit.edu.au/zettair/about.html
+
+Nicholas Lester
+Steven Garcia
+Hugh Williams
+Justin Zobel
+Falk Scholer
+Dirk Bahle
+John Yiannis
+Bodo von Billerbeck
+William Webber
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..cc17819
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,28 @@
+License taken from http://www.seg.rmit.edu.au/zettair/doc/copying.html
+
+Copyright (c) 2004, Search Engine Group
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. Neither the name of the Search Engine Group nor the names of its
+   contributors may be used to endorse or promote products derived from
+   this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..eab48b3
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1 @@
+Too many to list.
index 1e5b2a4..53f901e 100644 (file)
@@ -15,7 +15,8 @@ AM_LDFLAGS = @LIBS@
 
 # declaration of what to build (hint: nodist only seems to apply to SOURCES)
 bin_PROGRAMS = zet zet_trec zet_cat zet_impactify
-data_DATA = config/psettings.xml
+# Nick has changed data_ to pkgdata_
+pkgdata_DATA = config/psettings.xml
 lib_LTLIBRARIES = libzet.la
 noinst_PROGRAMS = zet_diff zet_file zet_dict \
                   src/test/str_1 \
@@ -32,51 +33,101 @@ noinst_PROGRAMS = zet_diff zet_file zet_dict \
                   objalloc.test lcrand.test stem.test btree chash.test \
                                  hashtime
 
-noinst_HEADERS = src/include/heap.h       include/index.h \
-                 src/include/index_querybuild.h \
-                 src/include/makeindex.h  src/include/uri.h \
-                 src/include/_index.h     src/include/merge.h \
-                 src/include/_postings.h  src/include/mlparse.h \
-                 src/include/_uri.h       src/include/postings.h \
-                 src/include/binsearch.h  src/include/stop.h \
-                 src/include/bit.h        src/include/str.h \
-                 src/include/chash.h      src/include/_chash.h \
-                 src/include/config_h.in  \
-                 src/include/def.h        src/include/timings.h \
-                 src/include/freemap.h    src/include/getlongopt.h \
-                 src/include/vec.h        src/include/poolalloc.h \
-                 src/include/bucket.h     src/include/test.h \
-                 src/include/fdset.h      src/include/queryparse.h \
-                 src/include/pyramid.h    src/include/iobtree.h \
-                 src/include/getmaxfsize.h \
-                 src/include/storagep.h   \
-                 src/include/btbucket.h   src/include/_btbucket.h \
-                 src/include/mem.h        src/include/_mem.h \
-                 src/include/vocab.h      src/include/ascii.h \
-                 src/include/mlparse_wrap.h src/include/btbulk.h \
-                 src/include/error.h      src/include/mime.h \
-                 src/include/summarise.h  src/include/stem.h \
-                 src/include/stack.h      src/include/rbtree.h \
-                 src/include/signals.h    src/include/alloc.h \
-                                src/include/staticalloc.h \
-                                src/include/metric.h     src/include/search.h \
-                 src/include/psettings.h  src/include/lcrand.h \
-                 src/include/objalloc.h   src/include/stream.h \
-                 src/include/crc.h        src/include/trec_eval.h \
-                 src/include/docmap.h     src/include/_docmap.h \
-                 src/include/reposset.h   src/include/_reposset.h \
-                                src/include/impact.h     src/include/impact_build.h \
-                 src/include/testutils.h \
-                 src/include/compat/zstdint.h \
-                 src/include/compat/zvalgrind.h \
-                 src/include/linux/firstinclude.h \
-                 src/include/freebsd/firstinclude.h \
-                 src/include/sunos/firstinclude.h \
-                 src/include/cygwin/firstinclude.h \
-                 src/include/darwin/firstinclude.h \
-                 src/include/win32/firstinclude.h \
-                 src/include/win32/config.h src/include/compat/zglob.h \
-                 src/include/svnversion.h
+# Nick put public headers in pkginclude_, left private headers in noinst_
+pkginclude_HEADERS = \
+       include/index.h \
+       src/include/alloc.h \
+       src/include/ascii.h \
+       src/include/binsearch.h \
+       src/include/bit.h \
+       src/include/btbucket.h \
+       src/include/btbulk.h \
+       src/include/bucket.h \
+       src/include/chash.h \
+       src/include/config_h.in \
+       src/include/crc.h \
+       src/include/def.h \
+       src/include/docmap.h \
+       src/include/error.h \
+       src/include/fdset.h \
+       src/include/freemap.h \
+       src/include/getlongopt.h \
+       src/include/getmaxfsize.h \
+       src/include/heap.h \
+       src/include/impact.h \
+       src/include/impact_build.h \
+       src/include/index_querybuild.h \
+       src/include/iobtree.h \
+       src/include/lcrand.h \
+       src/include/makeindex.h \
+       src/include/mem.h \
+       src/include/merge.h \
+       src/include/metric.h \
+       src/include/mime.h \
+       src/include/mlparse.h \
+       src/include/mlparse_wrap.h \
+       src/include/objalloc.h \
+       src/include/poolalloc.h \
+       src/include/postings.h \
+       src/include/psettings.h \
+       src/include/pyramid.h \
+       src/include/queryparse.h \
+       src/include/rbtree.h \
+       src/include/reposset.h \
+       src/include/search.h \
+       src/include/signals.h \
+       src/include/stack.h \
+       src/include/staticalloc.h \
+       src/include/stem.h \
+       src/include/stop.h \
+       src/include/storagep.h \
+       src/include/str.h \
+       src/include/stream.h \
+       src/include/summarise.h \
+       src/include/svnversion.h \
+       src/include/test.h \
+       src/include/testutils.h \
+       src/include/timings.h \
+       src/include/trec_eval.h \
+       src/include/uri.h \
+       src/include/vec.h \
+       src/include/vocab.h
+noinst_HEADERS = \
+       src/include/_btbucket.h \
+       src/include/_chash.h \
+       src/include/_docmap.h \
+       src/include/_index.h \
+       src/include/_mem.h \
+       src/include/_postings.h \
+       src/include/_reposset.h \
+       src/include/_uri.h \
+       src/include/compat/zglob.h \
+       src/include/compat/zstdint.h \
+       src/include/compat/zvalgrind.h \
+       src/include/cygwin/firstinclude.h \
+       src/include/darwin/firstinclude.h \
+       src/include/freebsd/firstinclude.h \
+       src/include/linux/firstinclude.h \
+       src/include/sunos/firstinclude.h \
+       src/include/win32/config.h \
+       src/include/win32/firstinclude.h
+
+# Nick added
+html_DATA = \
+       doc/Build.html \
+       doc/Content.html \
+       doc/copying.html \
+       doc/Credits.html \
+       doc/Disclaimer.html \
+       doc/hacking.html \
+       doc/index.html \
+       doc/logo.gif \
+       doc/Search.html \
+       doc/style.css \
+       doc/Tutorial.html
+# useless:
+#      doc/Readme.html \
+#      doc/README.TXT
 
 EXTRA_DIST = config/psettings.xml config/stoplist_sorted \
              txt/moby.txt txt/README \
@@ -354,4 +405,12 @@ pyzet-install:
        @echo "The directory holding libzet.so will also have to be in your LD_LIBRARY_PATH or similarly configured"
 endif
 
+# Nick (recommended by libtoolize)
+ACLOCAL_AMFLAGS = -I m4
+
+# Nick (trying to get tests to work)
+AUTOMAKE_OPTIONS = serial-tests
+XFAIL_TESTS = src/test/iobtree_1 src/test/bit_1 src/test/mem_1 src/test/bucket_1 src/test/str_1
+DISABLE_HARD_ERRORS = 1
+
 #### THINGS AFTER THIS LINE WILL BE REMOVED PRIOR TO DISTRIBUTION ####
diff --git a/NEWS b/NEWS
new file mode 100644 (file)
index 0000000..6c2f9bb
--- /dev/null
+++ b/NEWS
@@ -0,0 +1 @@
+No news is good news.
index 03b2807..02332c0 100644 (file)
@@ -1,12 +1,12 @@
 # This file gets processed with autoconf to produce a configure script
-AC_INIT(zettair, 0.9.3, zettair@cs.rmit.edu.au)
+AC_INIT([zettair],[0.9.3],[zettair@cs.rmit.edu.au])
 
 # calculate variables for target system
 AC_CANONICAL_TARGET()
 
 # check for valgrind
 AC_ARG_WITH(valgrind, 
-  AC_HELP_STRING([--with-valgrind[=DIR]], [integrate valgrind support for better error detetion]))
+  AS_HELP_STRING([--with-valgrind[=DIR]],[integrate valgrind support for better error detetion]))
 
 if test "x$with_valgrind" != "x"; then
     AC_DEFINE(WITH_VALGRIND, 1, [indicates whether to use valgrind])
@@ -152,8 +152,7 @@ AC_SUBST(OSINCLUDE, [$osinclude])
 # checks for programs
 AM_PROG_CC_C_O()    # support subdir objects for automake
 AC_PROG_CC
-AC_PROG_RANLIB
-AC_PROG_LIBTOOL
+LT_INIT
 AM_PATH_PYTHON(2.2,,:)  # need python2.2+ for build
 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
 
@@ -211,6 +210,10 @@ AC_CHECK_LIB(mx, sqrtf, [], # mx contains the floating point functions on darwin
      mv firstinclude.h src/include/$osinclude/firstinclude.h
     ])])
      
-AC_OUTPUT(Makefile)
-AC_OUTPUT(setup.py)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
+AC_CONFIG_FILES([setup.py])
+AC_OUTPUT
 
+# Nick (recommended by libtoolize)
+AC_CONFIG_MACRO_DIRS([m4])