debian/0000775000000000000000000000000012245425045007173 5ustar debian/source/0000775000000000000000000000000012233667425010502 5ustar debian/source/format0000664000000000000000000000001412233667425011710 0ustar 3.0 (quilt) debian/mdbtools.install0000664000000000000000000000007512233667425012417 0ustar debian/tmp/usr/bin/mdb-* debian/tmp/usr/share/man/man1/mdb-* debian/libmdb2.install0000664000000000000000000000004112233667425012100 0ustar debian/tmp/usr/lib/*/libmdb.so.* debian/clean0000664000000000000000000000012612233671126010177 0ustar # Delete new intermediate file generated by gnome-doc patch src/gmdb2/help/gmdb-C.omf debian/mdbtools-gmdb.menu0000664000000000000000000000034212233667425012621 0ustar ?package(mdbtools-gmdb): needs="x11" \ section="Applications/Data Management" \ title="MDB Viewer" \ longtitle="View and export Microsoft Access databases" \ command="/usr/bin/gmdb2" \ icon="/usr/share/pixmaps/gmdb2.xpm" debian/watch0000664000000000000000000000020012233667425010223 0ustar version=3 opts=uversionmangle=s/_(rc\d*)$/~$1/ \ https://github.com/brianb/mdbtools/tags/ .*/(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz)) debian/libmdbsql2.install0000664000000000000000000000004412233667425012623 0ustar debian/tmp/usr/lib/*/libmdbsql.so.* debian/changelog0000664000000000000000000005015312245425042011046 0ustar mdbtools (0.7.1-1ubuntu1) trusty; urgency=low * Add docbook-xml and rarian-compat to build deps since ubuntu buildd's are a bit more picky about the network. -- Rohan Garg Wed, 27 Nov 2013 18:20:01 +0100 mdbtools (0.7.1-1) unstable; urgency=low * Added keywords to gmdb.desktop, thanks lintian. * New upstream version - Support for ucs2 odbc (Closes: #675543) - Fix mdb-array crash when file is not found (Closes: #716325) - drop override_dh_autoreconf in rules since upstream INSTALL is gone. - Refresh patch use_lib_odbc_dir. All other patches are gone, there were applied upstream. - Acknowledge new symbols in libmdb2. - Drop -Wall since it is now upstream. - Refresh copyright file. * ODBC driver is no longer shipped as a versioned library: - Rename libmdbodbc1 into odbc-mdbtools. - Added back transitionnal package libmdbodbc1. - Drop odbc-mdbtools.symbols and added -q in dpkg-gensymbols. - Drop version in odbc-mdbtools.postinst and odbc-mdbtools.install. * New patch use_common_license so that gmdb prints license from /usr/share/common-licenses/. This quiets lintian. * Stop using scrollkeeper: - Drop build-dependency on rarian-compat. (Closes: #718465) - New patch gnome-doc from upstream commit. - New build-dependency on gnome-doc-utils. - Add --disable-scrollkeeper in debian/rules. - Add debian/clean to remove gnome-doc tmp file. - Disable portability warnings in autoreconf (rules): gnome-doc generates pages of ugly warnings otherwise. * Bumped policy to 3.9.5: No change required. -- Jean-Michel Vourgère Tue, 29 Oct 2013 09:29:15 +0100 mdbtools (0.7-3) unstable; urgency=low * Authorise byacc as an alternative for bison in Build-Deps. * libiodbc2 supports multi-arch since 3.52.7-2+deb7u1. Added version in libmdbodbc1 Breaks: and droped breaks-without-version lintian override. * Use dh9 DEB_CFLAGS_MAINT_APPEND rather than patch CLFAGS dirrectly. * Fixed buffer overflow in gmdb2 filename handling. -- Jean-Michel Vourgère Fri, 12 Jul 2013 02:29:47 +0200 mdbtools (0.7-2) unstable; urgency=low * Disable silent rules compilation * Compile with -Wall * Added bash-completion support * New patch from upstream to fix double free segv in gmdb2 when displaying data page in debug window. * Refreshed patch use_lib_odbc_dir * Added libmdbodbc1 recommends libodbc1 * Updated Standards-Version to 3.9.4: No change required. * Updated .desktop to format 1.0 * Update watch file because of upstream changes * Use canonical url anonscm.debian.org for vcs fields. * Fix SEGV on binaries reading (Closes: #713826) -- Jean-Michel Vourgère Tue, 25 Jun 2013 15:29:58 +0200 mdbtools (0.7-1) unstable; urgency=low * New upstream version - drop patches 03_documentation 04_fsf_comments 05_nolibexit 07_treeviewmodel 08_filelocals export_insert_schema install namespace_cpp that were included upstream. - remove the patch files from copyright * Bumped Standards-Version: to 3.9.3. No change required. * Updated copyright "Format:" to official version 1. * Added "Multi-Arch: foreign" on mdbtools, mdbtools-gmdb. * Added "Multi-Arch: same" on mdbtools-dev. * Drop "Build-Conflicts: automake1.4" since we already have "Build-Depends: automake >= 1.10)" * Fixed copyright author for patch export_repid_uuid_as_string_use_char_38_in_mysql * Build-Depends on debhelper >= 9, drop lintian override package-needs-versioned-debhelper-build-depends -- Jean-Michel Vourgère Fri, 29 Jun 2012 02:10:27 +0200 mdbtools (0.7~rc1-4) unstable; urgency=low * Refresh and reactivated old patches: + maintainermode avoids configure warning. Default is now enable. + treeviewmodel fixes some casting in gmdb2. + filelocals restricts the scope of some functions in gmdb (static). * Removed directory debian/oldpatches. * Added support for REPID (UUID) fields. Thanks Will Daniels from Ubuntu. * Updated patch 03_documentation: + better cleaning of documentation. + don't ignore openjade failure, even if book1.htm was generated. + test existence of install rather userguide. temporary files. * Add "Build-Depends: docbook" so that docbook-dsssl doesn't pull alternative docbook-xml, resulting in undetected openjade failure. * New patch for INSTALL to have new source loation on github. * New patch to fix schema support in mdb-export when using INSERT statements. * New patch so namespace cpp reserved keyword is not used in headers. -- Jean-Michel Vourgère Thu, 02 Feb 2012 21:12:19 +0100 mdbtools (0.7~rc1-3) unstable; urgency=low * Fix lintian unversioned-copyright-format-uri. * Updated 05-nolibexit patch forwarded address. * Moved documentation in its own package. It can't be in a "Multi-Arch: same" package. (Closes: #655174) * New debug symbols package mdbtools-dbg. -- Jean-Michel Vourgère Tue, 10 Jan 2012 23:11:30 +0100 mdbtools (0.7~rc1-2) unstable; urgency=low * New maintainer. (Closes: #635954) * New upstream release: + Used printf %f for small floats export. Thanks Vincent Fourmond. (Closes: #220403) + Fixed internal ordering of columns. (Closes: #233281) + Fixed Oracle export types. (Closes: #358670) + Fixed mdb-prop SEGV. (Closes: #412432) + Properly quote column names in mdb-export. Removed -S sanitisation option. (Closes: #470405, #470413) + Fixed NULL export in mdb-export, no longer exported as "". (Closes: #470414) + New option in mdb-schema to DROP existing tables. (Closes: #514843) + ODBC: Returns SQL_NO_DATA at end of data. (Closes: #514986) + Export Memo type into postgres Text type.(Closes: #565258) + Fixed timestamp exports. (Closes: #602774) * Removed old debian patches. They all were applied upstream. * Bump Standards-Version to 3.9.2: No change needed. * Added build-dependency on libglib2.0-dev, dh-autoreconf, rarian-compat, openjade, docbook-dsssl. Change automake1.10 into automake >= 1:1.10. * Fixed mdbtools-gmdb description for lintian spelling check. * Changed desktop file: + Added msaccess mime-types. + Removed icon extension. + Removed obsolete category Application. * Linker option -as-needed now upstream too. * Added version to packages names because of ABI change. Split libmdbtools into libmdb2 and libmdbsql2. * Included doc/faq.html in debian package. * Build doc/install.sgml files: + New build denpendencies on openjade and docbook-dsssl. + Patch 03_documentation to build the html files. * New doc-base files. * Added libmdbodbc postinst/prerm for automatic registration by odbcinst. * override_dh_autoreconf to preserve upstream INSTALL file: don't use -f. * Switch to multi-arch: + Patch to install libmdbodbc into /usr/lib/odbc/. + Actually moved it into /usr/lib/$arch/odbc/. + Don't call ldconfig in postinst/prerm for that library. + libmdbodbc1.postinst: Remove driver path. + Switch to compat 9. + Build-Depends on debhelper (>= 8.1.3~) + libmdbodbc1 breaks unixodbc (<< 2.2.14p2-3), odbcinst1debian2 (<< 2.2.14p2-3), libiodbc2. See unixodbc NEWS. + Updated install files. + 2 lintian overrides. * Updated watch file. * Migrated copyright file to dep5 format. * Changed Homepage field in control. -- Jean-Michel Vourgère Mon, 02 Jan 2012 01:10:30 +0100 mdbtools (0.5.99.0.6pre1.0.20051109-7.1) unstable; urgency=low * Non-maintainer upload. * Remove references to other libraries from dependency_libs field (Closes: #619683). -- Luk Claes Mon, 30 May 2011 18:56:21 +0200 mdbtools (0.5.99.0.6pre1.0.20051109-7) unstable; urgency=low * debian/control: + Update maintainer address. + Bump Standards-Version to 3.8.4. (No changes needed.) + Remove quilt from Build-Depends. * debian/rules: Remove '--with quilt' dh option. * debian/source/format: Switch to 3.0 (quilt). * debian/patches/035-filelocals.patch: Refresh patch. * debian/patches/070-unixodbc-api.patch: Update for changes to unixodbc API. (Closes: #577353) -- Tim Retout Sun, 18 Apr 2010 03:33:23 +0100 mdbtools (0.5.99.0.6pre1.0.20051109-6) unstable; urgency=low * debian/control: + Build-Depend on libreadline-dev instead of libreadline5-dev. (Closes: #553810) + Build-Depend on libncurses-dev as an alternative to libncurses5-dev. + Build-Depend on txt2man. + Update Standards-Version to 3.8.3. * debian/README.source: New file. * debian/patches/fix-mdb-export-usage: New patch to remove duplicate '-Q' in mdb-export command-line help. (Closes: #514848) * debian/patches/000-manpages: Drop patch. * debian/patches/use-system-txt2man: New patch to consolidate man page generation, and avoid using local txt2man copy. * debian/rules: Remove generated man pages during clean. * Add descriptive headers to several patches. * Add missing man pages. (Closes: #191631) + debian/patches/add-man-pages: New patch. + debian/mdbtools-gmdb.install: Install gmdb2 man page. -- Tim Retout Sat, 14 Nov 2009 10:56:15 +0000 mdbtools (0.5.99.0.6pre1.0.20051109-5) unstable; urgency=medium * New maintainer. (Closes: #414528) * Set urgency medium for RC bugfix. * debian/control: + Add libglade2-dev to Build-Depends. (Closes: #531980, #536935) Thanks to Michael Terry. + Remove URLs from Description, and use new Homepage field. (Closes: #439582) + Add Vcs-* fields. + Add ${misc:Depends} to Depends of binary packages. + Replace deprecated ${Source-Version} in mdbtools-dev Depends. + Bump Standards-Version to 3.8.2. + Change source package Section to 'database'. * debian/libmdbodbc.symbols, debian/libmdbtools.symbols: + Add symbols files for library packages. * Rewrite build system. + debian/compat: Bump to 7. + debian/control: - Bump debhelper build dependency, add quilt and remove cdbs. - Add build dependencies on autoconf, automake1.10 and libtool. - Build-Conflicts against autoconf2.13 and automake1.4. + debian/rules: - Use dh7 and quilt, and regenerate autotools during build. - Set LDFLAGS=-Wl,--as-needed during configure. - Drop --enable-sql configure flag, no longer exists. + Use same prefix level for all patches. + Move changes from Debian diff into 001-previous-debian-diff.patch + Drop 999-autogen.patch * debian/copyright: Add copyright headers and update licensing. * debian/mdbtools-gmdb.menu: Move to 'Applications/Data Management'. * debian/gmdb2.xpm: Resize to 32x32 pixels. * debian/patches/mdb-hexdump-argc.patch: Small fix to get usage statement to print correctly. * debian/patches/odbc-close-connections.patch: Actually close database connections on odbc_close. (Closes: #509240) -- Tim Retout Mon, 20 Jul 2009 11:43:32 +0200 mdbtools (0.5.99.0.6pre1.0.20051109-4) unstable; urgency=low * QA upload. * Package is orphaned (#414528); set maintainer to Debian QA Group. * Switch to debhelper 5. - Replace dh_movefiles with dh_install. - debian/mdbtools.install: Since dh_install complains on non-existent sources, remove /usr/bin/pr*, which upstream no longer installs. - debian/libmdbtools.postinst: Let debhelper take care of ldconfig. * debian/control: Make the extended description fit in 80 columns. * debian/rules: - Add support for DEB_BUILD_OPTIONS=noopt. - Remove support for DEB_BUILD_OPTIONS=debug. - Let dh_strip handle DEB_BUILD_OPTIONS=nostrip. * debian/watch: Add. * Conforms to Standards version 3.7.2. -- Matej Vela Wed, 11 Apr 2007 01:23:54 +0200 mdbtools (0.5.99.0.6pre1.0.20051109-3.1) unstable; urgency=low * NMU * New patch 080-size_t for fix segfaults on 64-bit archs (closes: #377542) -- Vincent Fourmond Thu, 22 Mar 2007 17:17:03 +0100 mdbtools (0.5.99.0.6pre1.0.20051109-3) unstable; urgency=low * Acknowledge NMU. (Closes: #234031, #321020, #351215, #354595, #355431) * Fix 64-bit issues with the ODBC support. (Closes: #360436) -- Filip Van Raemdonck Mon, 10 Apr 2006 19:44:56 +0200 mdbtools (0.5.99.0.6pre1.0.20051109-2.1) unstable; urgency=low * NMU * Fix typo in conflicts/replaces for libmdbodbc. Closes: #354595. * debian/patches/056-libmdb-data.patch: Fix infinite recursion with infinite arguments. Closes: #351215. * Fix Debian menu, add Gnome desktop file. Closes: #234031. -- Matthias Klose Sun, 5 Mar 2006 15:53:27 +0000 mdbtools (0.5.99.0.6pre1.0.20051109-2) unstable; urgency=low * Split out libmdbodbc package. (Closes: #323255) * More CVS patches, including the boolean read fix. (Closes: #345978) -- Filip Van Raemdonck Wed, 01 Feb 2006 19:49:43 +0100 mdbtools (0.5.99.0.6pre1.0.20051109-1) unstable; urgency=low * Apply selected patches from upstream CVS. * Acknowledge NMUs. (Closes: #287648, #315608, #326323) * Document mdb-schema -S and -N switches. (Closes: #281336) * Install pkgconfig files. (Closes: #289644) -- Filip Van Raemdonck Sun, 29 Jan 2006 16:19:02 +0100 mdbtools (0.5.99.0.6pre1.0.20050409-1.2) unstable; urgency=low * NMU * Remove '#include ' from mdbtools.h. Still the outstanding problem of a silent ABI change, if HAVA_ICONV is not defined. Apply suggested fix for #323256. * Build-depend on libreadline5-dev (closes: #326323). -- Matthias Klose Sun, 18 Sep 2005 08:57:35 +0000 mdbtools (0.5.99.0.6pre1.0.20050409-1.1) unstable; urgency=low * NMU * rebuild against odbcinst1debian1 (closes: #315608) * fix build with gcc-4.0 (closes: #287648) -- Rene Engelhard Tue, 2 Aug 2005 16:15:54 +0200 mdbtools (0.5.99.0.6pre1.0.20050409-1) unstable; urgency=high * New CVS snapshot. * Fix FTBFS. This was actually a backwards incompatibility in GTK+ 2.6. (Closes: #301121) -- Filip Van Raemdonck Mon, 25 Apr 2005 18:08:59 +0200 mdbtools (0.5.99.0.6pre1.0.20041117-2) unstable; urgency=medium * Add python to Build-Depends:. (Closes: #286601) -- Filip Van Raemdonck Tue, 21 Dec 2004 18:10:46 +0100 mdbtools (0.5.99.0.6pre1.0.20041117-1) unstable; urgency=low * New CVS snapshot, with improved data extraction. (Closes: #245076, #254428) * Strip off one level in manpage patches. * Correct gmdb menu entry. (Closes: #274572) -- Filip Van Raemdonck Tue, 07 Dec 2004 19:31:47 +0100 mdbtools (0.5.99.0.6pre1-2) unstable; urgency=high * Correctly set installation paths. (Closes: #273380) -- Filip Van Raemdonck Sun, 26 Sep 2004 14:56:50 +0200 mdbtools (0.5.99.0.6pre1-1) unstable; urgency=high * Upstream CVS snapshot. * Acknowledge NMU. (Closes: #248863) * Add missing prototypes. (Closes: #263241) * The rebuild automatically transitions to recent gnutls. (Closes: #263655) * Fix mdbtools-gmdb description grammar mistake. (Closes: #268528) * Keep ODBC unittest out of the package. (Closes: #269153) -- Filip Van Raemdonck Sat, 18 Sep 2004 10:08:14 +0200 mdbtools (0.5.99-2.1) unstable; urgency=low * Non-maintainer upload. * Fix up inter-library dependencies. (Closes: #248863) -- Steve Langasek Mon, 26 Jul 2004 03:29:26 -0700 mdbtools (0.5.99-2) unstable; urgency=medium * Add bison builddep. (Closes: #233484) -- Filip Van Raemdonck Wed, 18 Feb 2004 19:05:35 +0100 mdbtools (0.5.99-1) unstable; urgency=medium * New maintainer. Thanks Noel. * New upstream snapshot, greatly reducing the Debian diff due to incorporated patches or alternative ones. - The CVS version shows column titles at their full width. (Closes: #178903) - It should deal with char signedness. (Closes: #181229) - It can handle underscores in table names. (Closes: #186336) - It also handles more column types now. (Closes: #204813) - And it can do string comparisons in JET4 files. (Closes: #226449) * Acknowledge NMUs. (Closes: #206248, #206420, #215091, #215971, #216194, #216400, #217989) (Closes: #222713, #230824, #230914) * Update gmdb package description. (Closes: #209964) -- Filip Van Raemdonck Mon, 16 Feb 2004 19:28:11 +0100 mdbtools (0.5-6.6) unstable; urgency=high * NMU * Relibtooled and auto*ed. (Closes: #230824) * [debian/rules] Remove autom4te.cache as part of clean. -- J.H.M. Dassen (Ray) Tue, 3 Feb 2004 11:52:50 +0100 mdbtools (0.5-6.5) unstable; urgency=high * NMU with permission from Noel. * Fix sql row reader to not include rows with NULL columns for which a WHERE clause exists. (Closes: #222713) * Remove unneeded libgnome-dev builddep, which caused some libraries to be linked with glib 1.2 while others were (correctly) linked with glib 2. -- Filip Van Raemdonck Mon, 01 Dec 2003 19:14:21 +0100 mdbtools (0.5-6.4) unstable; urgency=high * NMU * [debian/control] Removed build dependency on liblinc-dev which is no longer a standalone package. (Closes: #217989) -- J.H.M. Dassen (Ray) Wed, 12 Nov 2003 21:44:51 +0100 mdbtools (0.5-6.3) unstable; urgency=medium * NMU * [debian/control] Added build dependency on liblinc-dev. -- J.H.M. Dassen (Ray) Sat, 18 Oct 2003 16:07:24 +0200 mdbtools (0.5-6.2) unstable; urgency=medium * NMU * Fixed inter-library dependencies: (Closes: #215971). * [src/sql/Makefile.am] Set libmdbsql_la_LIBADD appropriately. * Regenerated auto*. * [debian/control] * Dropped libgtk1.2-dev from build dependencies. * Added mdbtools-dev Depends: libglib2.0-dev. (Closes: #206248) -- J.H.M. Dassen (Ray) Fri, 17 Oct 2003 10:00:58 +0200 mdbtools (0.5-6.1) unstable; urgency=medium * NMU * [debian/rules] Added 'source-updates' target; made updates of config.{guess,sub} visible. * [configure.in] Added 'AM_MAINTAINER_MODE' to ensure the auto* files won't be regenerated at build time (which introduces more build dependencies, timeskew issues etc.). (Closes: #206420) * Regenerated auto*. * [debian/control] Work around the resulting libtool needing to have $SED set. -- J.H.M. Dassen (Ray) Fri, 10 Oct 2003 12:44:24 +0200 mdbtools (0.5-6) unstable; urgency=low * added missing dependencies of the -dev package thx Martin (closes: Bug#206230) (closes: Bug#206248) -- Noel Koethe Tue, 19 Aug 2003 22:07:00 +0200 mdbtools (0.5-5) unstable; urgency=low * mdbtools-gmdb section corrected to gnome * updated Standard-Version -- Noel Koethe Tue, 29 Jul 2003 16:31:00 +0200 mdbtools (0.5-4) unstable; urgency=low * updated libtool. Thanks Ray! (closes: Bug#177974) -- Noel Koethe Sun, 20 Jul 2003 14:38:00 +0200 mdbtools (0.5-3) unstable; urgency=low * added patch from Norbert Kiesel which fixed "segfault which reading memos which end at page boundary" see also his upstream report at https://sf.net/tracker/index.php?func=detail&aid=673000&group_id=2294&atid=102294 (closes: Bug#177988) * moved gmdb to an extra package (closes: Bug#178897) -- Noel Koethe Wed, 29 Jan 2003 16:01:00 +0100 mdbtools (0.5-2) unstable; urgency=low * added missing Build-Depends -- Noel Koethe Wed, 22 Jan 2003 14:26:00 +0100 mdbtools (0.5-1) unstable; urgency=low * new upstream release from 2003-01-19 (closes: Bug#177832) * corrected "worst package description of the year" (from a DD who isn't able to set the correct severity. Please read http://www.debian.org/Bugs/Developer#severities before filling bugs next time and let your feelings out of bug reports!) (closes: Bug#177849) -- Noel Koethe Wed, 22 Jan 2003 10:56:00 +0100 mdbtools (0.4-1) unstable; urgency=low * Initial Release. (closes: Bug#88901) -- Noel Koethe Wed, 15 Jan 2003 20:50:15 +0100 debian/odbc-mdbtools.install0000664000000000000000000000005112233667425013316 0ustar debian/tmp/usr/lib/*/odbc/libmdbodbc*.so debian/mdbtools-gmdb.desktop0000664000000000000000000000063212233667425013330 0ustar [Desktop Entry] Type=Application Version=1.0 Name=MDB Viewer Comment=View and export Microsoft Access databases Keywords=Microsoft;Access;database;SQL;Jet;schema;query;mdb;accdb; Icon=gmdb2 TryExec=gmdb2 Exec=gmdb2 %f Terminal=false MimeType=application/vnd.ms-access;application/x-msaccess;application/msaccess;application/vnd.msaccess;application/mdb;application/x-mdb; Categories=Office; StartupNotify=true debian/mdbtools-dev.install0000664000000000000000000000026712233667425013176 0ustar debian/tmp/usr/include/mdbsql.h debian/tmp/usr/include/mdbtools.h debian/tmp/usr/lib/*/lib*.a debian/tmp/usr/lib/*/lib*.la debian/tmp/usr/lib/*/lib*.so debian/tmp/usr/lib/*/pkgconfig debian/libmdbsql2.symbols0000664000000000000000000000311212233667425012644 0ustar libmdbsql.so.2 libmdbsql2 #MINVER# mdb_sql_add_and@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_add_column@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_add_not@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_add_or@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_add_sarg@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_add_table@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_add_temp_col@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_all_columns@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_alloc_node@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_bind_all@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_bind_column@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_close@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_describe_table@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_dump@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_dump_node@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_dump_results@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_error@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_eval_expr@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_exit@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_fetch_row@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_find_sargcol@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_free_tree@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_init@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_listtables@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_open@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_pop_node@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_push_node@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_reset@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_run_query@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_select@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_set_maxrow@Base 0.5.99.0.6pre1.0.20051109 mdb_sql_yyinput@Base 0.5.99.0.6pre1.0.20051109 debian/compat0000664000000000000000000000000212233667425010400 0ustar 9 debian/mdbtools-gmdb.install0000664000000000000000000000033312233667425013323 0ustar debian/gmdb2.xpm usr/share/pixmaps debian/mdbtools-gmdb.desktop usr/share/applications debian/tmp/usr/bin/gmdb2 debian/tmp/usr/share/gmdb/glade debian/tmp/usr/share/gnome/help/gmdb debian/tmp/usr/share/man/man1/gmdb2.1 debian/odbc-mdbtools.postinst0000664000000000000000000000220512233667425013536 0ustar #!/bin/sh # postinst script for odbc-mdbtools # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package odbcinsttemplate() { cat - <<-EOS [MDBTools] Description = MDBTools Driver Driver = libmdbodbc.so Setup = libmdbodbc.so FileUsage = 1 EOS } case "$1" in configure) odbcinsttemplate | odbcinst -i -d -r -v ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/control0000664000000000000000000001153112245424411010573 0ustar Source: mdbtools Section: database Priority: optional Maintainer: Jean-Michel Vourgère Build-Depends: autoconf, automake (>= 1:1.10), bash-completion, bison | byacc, debhelper (>= 9), dh-autoreconf, docbook, docbook-dsssl, flex, gnome-doc-utils, libglade2-dev, libglib2.0-dev, libgnomeui-dev, libncurses5-dev | libncurses-dev, libreadline-dev, libtool, openjade, texinfo, txt2man, unixodbc-dev, docbook-xml, rarian-compat Build-Conflicts: autoconf2.13 Standards-Version: 3.9.5 Homepage: http://mdbtools.sourceforge.net/ Vcs-Git: git://anonscm.debian.org/collab-maint/mdbtools.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/mdbtools.git Package: mdbtools Architecture: any Multi-Arch: foreign Depends: ${misc:Depends}, ${shlibs:Depends} Suggests: bash-completion, mdbtools-doc Description: JET / MS Access database (MDB) tools These are various tools for manipulating JET / MS Access database (MDB) files: * utils - provides command line utilities to list tables, export schema, and data, show file versions, and other useful stuff. * mdb-sql - a command line SQL tool that allows one to type SQL queries and get results. Package: mdbtools-gmdb Architecture: any Multi-Arch: foreign Section: gnome Depends: ${misc:Depends}, ${shlibs:Depends} Suggests: bash-completion, mdbtools-doc Description: JET / MS Access database (MDB) file viewer GNOME MDB viewer is a graphical interface that allows one to export data and schema from so-called JET database files. (These files are more commonly known as MDB files for their filename extension, or Access Databases after the name of the Microsoft application that uses JET as its native embedded database format) Package: mdbtools-dev Architecture: any Multi-Arch: same Section: devel Depends: libglib2.0-dev, libmdb2 (= ${binary:Version}), libmdbsql2 (= ${binary:Version}), odbc-mdbtools (= ${binary:Version}), ${misc:Depends} Suggests: mdbtools-doc Description: mdbtools development files Utilities for reading MS Access database (MDB) files . These are development files for mdbtools, needed to build applications with it. Package: libmdb2 Architecture: any Multi-Arch: same Section: libs Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Suggests: mdbtools-doc Description: Core library for accessing JET / MS Access (MDB) files Core library for accessing JET / MS Access database (MDB) files programmatically. . Allows one to use MDB files with PHP for example. Package: libmdbsql2 Architecture: any Multi-Arch: same Section: libs Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Suggests: mdbtools-doc Description: mdbtools SQL library Libraries built on libmdb to provide a SQL engine for reading JET / MS Access database (MDB) files. . See mdb-sql util in mdbtools package. Package: odbc-mdbtools Architecture: any Multi-Arch: same Section: libs Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Recommends: libodbc1 Suggests: mdbtools-doc Breaks: libiodbc2 (<< 3.52.7-2+deb7u1), libmdbodbc1 (<< 0.7.1-1~), odbcinst1debian2 (<< 2.2.14p2-3), unixodbc (<< 2.2.14p2-3) Replaces: libmdbodbc1 (<< 0.7.1-1~) Description: MDB tools ODBC driver This is the software driver to access JET / MS Access database (MDB) files through ODBC. This also contains the installation interface for unixodbc. Package: mdbtools-dbg Architecture: any Multi-Arch: same Priority: extra Section: debug Depends: libmdb2 (= ${binary:Version}), libmdbsql2 (= ${binary:Version}), mdbtools (= ${binary:Version}), mdbtools-gmdb (= ${binary:Version}), odbc-mdbtools (= ${binary:Version}), ${misc:Depends} Description: Debug symbols for MDB Tools MDB tools are used to manipulate JET / MS Access database (MDB) files. . Contains debug symbols for packages mdbtools, libmdb2, libmdbsql2, odbc-mdbtools and mdbtools-gmdb. Package: mdbtools-doc Architecture: all Section: doc Depends: ${misc:Depends} Description: Documentation for MDB tools MDB tools are used to manipulate JET / MS Access database (MDB) files. . This package contains a description of the .mdb format, some FAQ and a guide describing common problems such as charset configuration and ODBC usage. Package: libmdbodbc1 Architecture: all Section: oldlibs Priority: extra Depends: odbc-mdbtools, ${misc:Depends} Description: Transitional package for odbc-mdbtools This is a transitional package to ease upgrades to the odbc-mdbtools package. It can safely be removed. debian/mdbtools-doc.docs0000664000000000000000000000011012233667425012432 0ustar AUTHORS HACKING NEWS README TODO doc/faq.html doc/install.sgml doc/html debian/mdbtools.bash-completion0000664000000000000000000000717112233667425014041 0ustar #-*- mode: shell-script;-*- have mdb-export && _mdb_export() { local cur prev COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} if [[ "$prev" == -@(d|R|q|X|D|N) ]] ; then return 0 elif [[ "$prev" == -I ]] ; then COMPREPLY=( $( compgen -W 'access sybase oracle postgres mysql' -- $cur ) ) elif [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '-T -H -d -R -Q -q -X -I -D -N' -- $cur ) ) elif [[ "$prev" == *@(mdb|mdw|accdb) ]] ; then local dbname local tablenames dbname=$prev __expand_tilde_by_ref dbname tablenames=$(eval mdb-tables -S -d / "${dbname}" 2>/dev/null) COMPREPLY=( $( IFS=/ compgen -W "${tablenames}" -- $cur ) ) else _filedir '@(mdb|mdw|accdb)' fi return 0 } && complete -F _mdb_export mdb-export have mdb-hexdump && _mdb_hexdump() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} if (( COMP_CWORD == 1 )); then _filedir '@(mdb|mdw|accdb)' fi return 0 } && complete -F _mdb_hexdump mdb-hexdump have mdb-parsecsv && _mdb_parsecsv() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} if (( COMP_CWORD == 1 )); then _filedir '@(txt|csv)' fi return 0 } && complete -F _mdb_parsecsv mdb-parsecsv have mdb-prop && _mdb_prop() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} if (( COMP_CWORD == 1 )); then _filedir '@(mdb|mdw|accdb)' elif (( COMP_CWORD == 2 )); then local dbname local tablenames dbname=${COMP_WORDS[1]} __expand_tilde_by_ref dbname tablenames=$(eval mdb-tables -S -d / "${dbname}" 2>/dev/null) COMPREPLY=( $( IFS=/ compgen -W "${tablenames}" -- $cur ) ) elif (( COMP_CWORD == 3 )); then COMPREPLY=( $( compgen -W 'Lv LvProp LvModule LvExtra' -- $cur ) ) fi return 0 } && complete -F _mdb_prop mdb-prop have mdb-schema && _mdb_schema() { local cur prev COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} if [[ "$prev" == -@(T|table|N) ]] ; then return 0 elif [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '-T --table -N \ --drop-table --no-drop-table \ --not-null --no-not-null \ --default-values --no-default-values \ --not-empty --no-not-empty \ --indexes --no-indexes \ --relations --no-relations' -- $cur ) ) elif [[ "$prev" == @(*mdb|*mdw|*accdb) ]]; then COMPREPLY=( $( compgen -W 'access sybase oracle postgres mysql' -- $cur ) ) else _filedir '@(mdb|mdw|accdb)' fi return 0 } && complete -F _mdb_schema mdb-schema have mdb-sql && _mdb_sql() { local cur prev COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} if [[ "$prev" == -d ]] ; then return 0 elif [[ "$prev" == -@(i|o) ]] ; then _filedir elif [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '-H -f -p -d -i -o' -- $cur ) ) else _filedir '@(mdb|mdw|accdb)' fi return 0 } && complete -F _mdb_sql mdb-sql have mdb-tables && _mdb_tables() { local cur prev COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} if [[ "$prev" == -d ]]; then return 0 elif [[ "$prev" == -t ]]; then COMPREPLY=( $( compgen -W 'form table macro systable report query linkedtable module relationship dbprop any all' -- $cur ) ) return 0 elif [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '-S -1 -d -t' -- $cur ) ) else _filedir '@(mdb|mdw|accdb)' fi return 0 } && complete -F _mdb_tables mdb-tables have mdb-ver && _mdb_ver() { local cur COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '-M' -- $cur ) ) else _filedir '@(mdb|mdw|accdb)' fi return 0 } && complete -F _mdb_ver mdb-ver debian/mdbtools-doc.doc-base.mdbtools-install0000664000000000000000000000041412233667425016454 0ustar Document: mdbtools-install Title: MDB Tools Installation Guide Author: Brian Bruns Abstract: A guide to installing and configuring MDB Tools Section: Programming Format: HTML Files: /usr/share/doc/mdbtools-doc/html/ Index: /usr/share/doc/mdbtools-doc/html/index.html debian/gmdb2.xpm0000664000000000000000000001464512233667425010735 0ustar /* XPM */ static char * gmdb2_xpm[] = { "32 32 271 2", " c None", ". c #C4C38B", "+ c #CFCD76", "@ c #F6F438", "# c #CFCD52", "$ c #A9A873", "% c #7F7F75", "& c #B5B5A1", "* c #ECEA3D", "= c #F9F614", "- c #AFAE84", "; c #E0DE6E", "> c #A7A685", ", c #9C9C9D", "' c #B9B9AB", ") c #E0DF42", "! c #F2F03A", "~ c #CDCC5A", "{ c #BFBFAF", "] c #B7B686", "^ c #818185", "/ c #AFAFB1", "( c #ABABAB", "_ c #D5D371", ": c #FFFE15", "< c #C5C471", "[ c #C2C158", "} c #C7C65F", "| c #939393", "1 c #D1D064", "2 c #BBBBB2", "3 c #A9A9A9", "4 c #CCCB7E", "5 c #EBE943", "6 c #DEDC46", "7 c #CCCA4B", "8 c #C5C465", "9 c #A7A68F", "0 c #A2A27E", "a c #BDBDBD", "b c #9E9D8D", "c c #B6B6B7", "d c #B5B5B5", "e c #AAAAAA", "f c #A9A9AC", "g c #F4F21D", "h c #F1EF34", "i c #B2B160", "j c #DCDA45", "k c #969691", "l c #B0AF7F", "m c #E8E642", "n c #C6C5AB", "o c #888888", "p c #A0A0A7", "q c #96968B", "r c #848453", "s c #96956B", "t c #909095", "u c #A6A697", "v c #C2C2A7", "w c #D5D359", "x c #F7F417", "y c #D2D169", "z c #B2B17E", "A c #C9C764", "B c #81818B", "C c #939387", "D c #AFAE6F", "E c #A6A6B7", "F c #929293", "G c #797989", "H c #999865", "I c #E8E515", "J c #FAF717", "K c #A7A677", "L c #E5E32F", "M c #C0BF7C", "N c #CBC959", "O c #F8F622", "P c #C1C170", "Q c #D8D659", "R c #B5B572", "S c #99999E", "T c #BDBC7F", "U c #ABABAC", "V c #ACACAD", "W c #9A9A99", "X c #7E7E75", "Y c #CECB27", "Z c #FFFF0A", "` c #FEFB10", " . c #FFFC10", ".. c #FDFA10", "+. c #C1C057", "@. c #FDFA15", "#. c #FFFD0C", "$. c #F0EE34", "%. c #AEAD72", "&. c #D3D24F", "*. c #A7A799", "=. c #B6B567", "-. c #FCF915", ";. c #C4C38E", ">. c #A5A6A7", ",. c #71717C", "'. c #B1AF49", "). c #C6C479", "!. c #C3C26D", "~. c #FFFE0C", "{. c #BCBB4D", "]. c #F2F01D", "^. c #C6C670", "/. c #C8C761", "(. c #A5A58D", "_. c #B5B573", ":. c #E8E630", "<. c #ECEA30", "[. c #939283", "}. c #9D9DA3", "|. c #686870", "1. c #D0CE58", "2. c #C2C05A", "3. c #EEEB31", "4. c #A2A176", "5. c #FFFF0C", "6. c #FFFC0F", "7. c #FDFA11", "8. c #A3A36F", "9. c #A5A6AE", "0. c #B1B174", "a. c #9B9BA0", "b. c #E6E44A", "c. c #FFFE0B", "d. c #FAF714", "e. c #C5C57B", "f. c #B7B7B7", "g. c #A9A9AA", "h. c #95956D", "i. c #C1BF66", "j. c #DDDB47", "k. c #BFBE88", "l. c #C3C25B", "m. c #828291", "n. c #A7A690", "o. c #D5D46E", "p. c #FFFE0D", "q. c #FFFE07", "r. c #D3D15B", "s. c #79796B", "t. c #90909B", "u. c #7A7A74", "v. c #DFDC1D", "w. c #CECC55", "x. c #868694", "y. c #BCBC88", "z. c #EBE941", "A. c #9B9B8C", "B. c #C6C45C", "C. c #FFFF07", "D. c #E5E44B", "E. c #B6B6B5", "F. c #67674B", "G. c #FAF830", "H. c #F5F227", "I. c #C3C279", "J. c #C5C460", "K. c #FEFB0C", "L. c #AAA969", "M. c #A9A86B", "N. c #B9B863", "O. c #97978B", "P. c #BEBEBF", "Q. c #6F6F77", "R. c #C3C271", "S. c #B9B877", "T. c #AEAC5A", "U. c #FFFD1F", "V. c #FEFB13", "W. c #FCF912", "X. c #ACAA45", "Y. c #F3F01B", "Z. c #B1B082", "`. c #B1B17B", " + c #6D6D63", ".+ c #BBBB78", "++ c #DEDD62", "@+ c #AEAE8D", "#+ c #F9F71F", "$+ c #EAE825", "%+ c #AAA843", "&+ c #ADAC67", "*+ c #ECE950", "=+ c #99997F", "-+ c #A3A37B", ";+ c #C8C764", ">+ c #CCCA75", ",+ c #C9C877", "'+ c #C6C55C", ")+ c #BBBB8F", "!+ c #FDFA0E", "~+ c #83837B", "{+ c #FCF914", "]+ c #AEAE98", "^+ c #9C9A51", "/+ c #A7A7A5", "(+ c #EEEC45", "_+ c #CFCE46", ":+ c #C6C597", "<+ c #FFFD0B", "[+ c #E0DE46", "}+ c #8C8B57", "|+ c #CFCD65", "1+ c #A6A6A2", "2+ c #BBBA4E", "3+ c #D8D65C", "4+ c #A2A2BF", "5+ c #DDDB5A", "6+ c #D4D347", "7+ c #FAF822", "8+ c #9B9A71", "9+ c #FFFD0E", "0+ c #F3F134", "a+ c #5E5F70", "b+ c #E8E64B", "c+ c #B6B6AF", "d+ c #A2A2A7", "e+ c #CAC847", "f+ c #ABAA75", "g+ c #A0A089", "h+ c #F3F141", "i+ c #CBC94A", "j+ c #C2C171", "k+ c #B3B28F", "l+ c #FCF92A", "m+ c #F3F01A", "n+ c #6B6B66", "o+ c #D6D55A", "p+ c #D2D167", "q+ c #85857F", "r+ c #E7E534", "s+ c #F5F31C", "t+ c #B5B47D", "u+ c #DFDD37", "v+ c #B1B194", "w+ c #C5C357", "x+ c #A3A34D", "y+ c #7E7E91", "z+ c #D2D147", "A+ c #D8D756", "B+ c #B3B3B4", "C+ c #757567", "D+ c #F1EE21", "E+ c #9A9A9D", "F+ c #C5C35C", "G+ c #B1B066", "H+ c #66666A", "I+ c #BEBD70", "J+ c #EEEC49", "K+ c #B4B494", "L+ c #B7B7B8", "M+ c #A2A16A", "N+ c #D9D721", "O+ c #88875E", "P+ c #9D9C6E", "Q+ c #DEDD6E", "R+ c #D8D751", "S+ c #939496", "T+ c #9F9FA6", "U+ c #E1DF3B", "V+ c #CCCB6E", " ", " ", " ", " . ", " + @ # $ % ", " & * = - ; > , ", " ' ) ! ~ { ] ^ / ( ", " _ : < [ } | 1 2 3 ", " 4 5 6 7 8 9 0 a b c ", " d e f g h i j k l m n o ", " p q r s t u v w x y z A B C D E F ", " G H I : J K L M N O P Q R S T U V ", " W X Y Z ` ...+.@.#.$.%.&.*.=.-.;.>. ", " ,.'.).!.~. . ...{.].^./.(._.:.<.[.}. ", " |.1.2.3.4.5. .6.7.8.9.0.a.b.c.d.e.f. ", " g.h.i.j. k.c. .Z l.m.n.o.p.q.r.s.t. ", " u.v.w.x. y.c. .#.z.A.B.C.D.e E. ", " F.G.C.H.I.J.p. .` K.L.M.N.O.P. ", " Q.R.S.T.U.V.W.6. . ...X.Y.Z.`. ", " +.+++ @+#+$+6. . ...%+&+*+=+ ", " -+;+>+ ,+'+)+c. .` !+~+{+]+ ", ", ^+ . /+(+_+:+<+` c.[+}+|+ ", "1+2+3+4+5+6+7+8+Z 9+0+a+b+c+ ", "d+e+f+g+h+i+j+k+l+m+n+o+p+ ", " q+r+s+t+u+v+w+x+y+z+A+ ", " B+C+D+E+F+G+H+I+J+K+ ", " L+M+N+O+P+Q+R+ ", " S+T+U+V+ ", " ", " ", " ", " "}; debian/mdbtools-doc.doc-base.mdbtools-faq0000664000000000000000000000032312233667425015554 0ustar Document: mdbtools-faq Title: MDB Tools FAQ Author: Brian Bruns Abstract: MDB Tools FAQ Section: Programming Format: html Index: /usr/share/doc/mdbtools-doc/faq.html Files: /usr/share/doc/mdbtools-doc/faq.html debian/patches/0000775000000000000000000000000012233667425010631 5ustar debian/patches/gnome-doc0000664000000000000000000011601512233667425012430 0ustar Description: Move gmdb help arch from rarian to gnome-doc, fix DTD compliance . Upgrade to lastest gnome-doc-utils make/m4 files . Fix gmdb.xml: cannot contains dirrectly. Added a wrapper. Author: Jean-Michel Vourgère Last-Update: 2013-10-24 Forwarded: https://github.com/brianb/mdbtools/commit/b5fb8243a164445139c878128ec90935cdb183de Bug-Debian: #718465 Applied-Upstream: commit:b5fb8243a164445139c878128ec90935cdb183de Index: mdbtools/.gitignore =================================================================== --- mdbtools.orig/.gitignore +++ mdbtools/.gitignore @@ -11,6 +11,7 @@ !m4/ccalias.m4 !m4/iconv.m4 !m4/readline.m4 +!m4/gnome-doc-utils.m4 config.log config.status configure @@ -28,7 +29,7 @@ types.h src/extras/mdb-hexdump src/gmdb2/gmdb2 -src/gmdb2/help/C/omf_timestamp +src/gmdb2/help/gmdb-C.omf src/odbc/unittest src/sql/lexer.c src/sql/parser.c Index: mdbtools/configure.ac =================================================================== --- mdbtools.orig/configure.ac +++ mdbtools/configure.ac @@ -150,6 +150,7 @@ AC_SUBST(GNOME_CFLAGS) AC_SUBST(GNOME_LIBS) OPTDIRS="$OPTDIRS gmdb2" + GNOME_DOC_INIT fi else AC_MSG_NOTICE(gmdb2 disabled) @@ -233,7 +234,6 @@ src/gmdb2/gladefiles/Makefile src/gmdb2/pixmaps/Makefile src/gmdb2/help/Makefile -src/gmdb2/help/C/Makefile mdbtools.spec include/mdbver.h]) AC_OUTPUT Index: mdbtools/gnome-doc-utils.make =================================================================== --- /dev/null +++ mdbtools/gnome-doc-utils.make @@ -0,0 +1,706 @@ +# gnome-doc-utils.make - make magic for building documentation +# Copyright (C) 2004-2005 Shaun McCance +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +################################################################################ +## @@ Generating Header Files + +## @ DOC_H_FILE +## The name of the header file to generate +DOC_H_FILE ?= + +## @ DOC_H_DOCS +## The input DocBook files for generating the header file +DOC_H_DOCS ?= + +$(DOC_H_FILE): $(DOC_H_DOCS); + @rm -f $@.tmp; touch $@.tmp; + echo 'const gchar* documentation_credits[] = {' >> $@.tmp + list='$(DOC_H_DOCS)'; for doc in $$list; do \ + xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \ + if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \ + xsltproc --path "$$xmlpath" $(_credits) $$doc; \ + done | sort | uniq \ + | awk 'BEGIN{s=""}{n=split($$0,w,"<");if(s!=""&&s!=substr(w[1],1,length(w[1])-1)){print s};if(n>1){print $$0;s=""}else{s=$$0}};END{if(s!=""){print s}}' \ + | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp + echo ' NULL' >> $@.tmp + echo '};' >> $@.tmp + echo >> $@.tmp + list='$(DOC_H_DOCS)'; for doc in $$list; do \ + xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \ + if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \ + docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \ + | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \ + echo $$xmlpath; \ + ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \ + for id in $$ids; do \ + echo '#define HELP_'`echo $$docid`'_'`echo $$id \ + | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \ + done; \ + echo >> $@.tmp; \ + done; + cp $@.tmp $@ && rm -f $@.tmp + +dist-check-gdu: +if !HAVE_GNOME_DOC_UTILS + @echo "*** GNOME Doc Utils must be installed in order to make dist" + @false +endif + +.PHONY: dist-doc-header +dist-doc-header: $(DOC_H_FILE) + @if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \ + echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \ + $(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)"; + +doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header) + +.PHONY: clean-doc-header +_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header) +clean-local: $(_clean_doc_header) +distclean-local: $(_clean_doc_header) +mostlyclean-local: $(_clean_doc_header) +maintainer-clean-local: $(_clean_doc_header) +clean-doc-header: + rm -f $(DOC_H_FILE) + +all: $(DOC_H_FILE) + + +################################################################################ +## @@ Generating Documentation Files + +## @ DOC_MODULE +## The name of the document being built +DOC_MODULE ?= + +## @ DOC_ID +## The unique identifier for a Mallard document +DOC_ID ?= + +## @ DOC_PAGES +## Page files in a Mallard document +DOC_PAGES ?= + +## @ DOC_ENTITIES +## Files included with a SYSTEM entity +DOC_ENTITIES ?= + +## @ DOC_INCLUDES +## Files included with XInclude +DOC_INCLUDES ?= + +## @ DOC_FIGURES +## Figures and other external data +DOC_FIGURES ?= + +## @ DOC_FORMATS +## The default formats to be built and installed +DOC_FORMATS ?= docbook +_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS)) + +## @ DOC_LINGUAS +## The languages this document is translated into +DOC_LINGUAS ?= +_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \ + $(filter $(LINGUAS),$(DOC_LINGUAS)), \ + $(DOC_LINGUAS)) + +_DOC_ABS_SRCDIR = @abs_srcdir@ + + +################################################################################ +## Variables for Bootstrapping + +_xml2po ?= `which xml2po` +_xml2po_mode = $(if $(DOC_ID),mallard,docbook) + +_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils` +_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils` +_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl +_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl +_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl + +if ENABLE_SK +_ENABLE_SK = true +_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir` +_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir` +_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml +endif + + +################################################################################ +## Support for automake silent-rules +GDU_V_XML2PO=$(GDU__v_XML2PO_$(V)) +GDU__v_XML2PO_=$(GDU__v_XML2PO_$(AM_DEFAULT_VERBOSITY)) +GDU__v_XML2PO_0=@echo " XML2PO" $@; + +GDU_V_MSGFMT=$(GDU__v_MSGFMT_$(V)) +GDU__v_MSGFMT_=$(GDU__v_MSGFMT_$(AM_DEFAULT_VERBOSITY)) +GDU__v_MSGFMT_0=@echo " MSGFMT" $@; + +GDU_V_DB2OMF=$(GDU__v_DB2OMF_$(V)) +GDU__v_DB2OMF_=$(GDU__v_DB2OMF_$(AM_DEFAULT_VERBOSITY)) +GDU__v_DB2OMF_0=@echo " DB2OMF" $@; + +GDU_V_DB2HTM=$(GDU__v_DB2HTM_$(V)) +GDU__v_DB2HTM_=$(GDU__v_DB2HTM_$(AM_DEFAULT_VERBOSITY)) +GDU__v_DB2HTM_0=@echo " DB2HTM" $@; + +################################################################################ +## @@ Rules for OMF Files + +db2omf_args = \ + --stringparam db2omf.basename $(DOC_MODULE) \ + --stringparam db2omf.format $(3) \ + --stringparam db2omf.dtd \ + $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \ + | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \ + --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \ + --stringparam db2omf.omf_dir "$(OMF_DIR)" \ + --stringparam db2omf.help_dir "$(HELP_DIR)" \ + --stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \ + $(if $(_ENABLE_SK), \ + --stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \ + $(_db2omf) $(2) + +## @ _DOC_OMF_IN +## The OMF input file +_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in)) + +## @ _DOC_OMF_DB +## The OMF files for DocBook output +_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \ + $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf)) + +$(_DOC_OMF_DB) : $(_DOC_OMF_IN) +$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml + @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \ + echo "The file '$(_skcontentslist)' does not exist." >&2; \ + echo "Please check your ScrollKeeper installation." >&2; \ + exit 1; } + $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; } + +## @ _DOC_OMF_HTML +## The OMF files for HTML output +_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \ + $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf)) + +$(_DOC_OMF_HTML) : $(_DOC_OMF_IN) +$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml +if ENABLE_SK + @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \ + echo "The file '$(_skcontentslist)' does not exist" >&2; \ + echo "Please check your ScrollKeeper installation." >&2; \ + exit 1; } +endif + $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; } + +## @ _DOC_OMF_ALL +## All OMF output files to be built +# FIXME +_DOC_OMF_ALL = \ + $(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \ + $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML)) + +.PHONY: omf +omf: $(_DOC_OMF_ALL) + + +################################################################################ +## @@ C Locale Documents + +## @ _DOC_C_MODULE +## The top-level documentation file in the C locale +_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml) + +## @ _DOC_C_PAGES +## Page files in a Mallard document in the C locale +_DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page)) + +## @ _DOC_C_ENTITIES +## Files included with a SYSTEM entity in the C locale +_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent)) + +## @ _DOC_C_XINCLUDES +## Files included with XInclude in the C locale +_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc)) + +## @ _DOC_C_DOCS +## All documentation files in the C locale +_DOC_C_DOCS = \ + $(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \ + $(_DOC_C_PAGES) $(_DOC_C_MODULE) + +## @ _DOC_C_DOCS_NOENT +## All documentation files in the C locale, +## except files included with a SYSTEM entity +_DOC_C_DOCS_NOENT = \ + $(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \ + $(_DOC_C_PAGES) + +## @ _DOC_C_FIGURES +## All figures and other external data in the C locale +_DOC_C_FIGURES = $(if $(DOC_FIGURES), \ + $(foreach fig,$(DOC_FIGURES),C/$(fig)), \ + $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png))) + +## @ _DOC_C_HTML +## All HTML documentation in the C locale +# FIXME: probably have to shell escape to determine the file names +_DOC_C_HTML = $(foreach f, \ + $(shell xsltproc --xinclude \ + --stringparam db.chunk.basename "$(DOC_MODULE)" \ + $(_chunks) "C/$(DOC_MODULE).xml"), \ + C/$(f).xhtml) + +############################################################################### +## @@ Other Locale Documentation + +## @ _DOC_POFILES +## The .po files used for translating the document +_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \ + $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po)) + +.PHONY: po +po: $(_DOC_POFILES) + +## @ _DOC_MOFILES +## The .mo files used for translating the document +_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES)) + +.PHONY: mo +mo: $(_DOC_MOFILES) + +## @ _DOC_LC_MODULES +## The top-level documentation files in all other locales +_DOC_LC_MODULES = $(if $(DOC_MODULE), \ + $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml)) + +## @ _DOC_LC_PAGES +## Page files in a Mallard document in all other locales +_DOC_LC_PAGES = \ + $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \ + $(lc)/$(notdir $(page)) )) + +## @ _DOC_LC_XINCLUDES +## Files included with XInclude in all other locales +_DOC_LC_INCLUDES = \ + $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \ + $(lc)/$(notdir $(inc)) )) + +## @ _DOC_LC_HTML +## All HTML documentation in all other locales +# FIXME: probably have to shell escape to determine the file names +_DOC_LC_HTML = \ + $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \ + $(lc)/$(notdir $(doc)) )) + +## @ _DOC_LC_DOCS +## All documentation files in all other locales +_DOC_LC_DOCS = \ + $(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \ + $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML)) + +## @ _DOC_LC_FIGURES +## All figures and other external data in all other locales +_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \ + $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) ) + +_DOC_SRC_FIGURES = \ + $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \ + $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) )) + +$(_DOC_POFILES): + @if ! test -d $(dir $@); then \ + echo "mkdir $(dir $@)"; \ + mkdir "$(dir $@)"; \ + fi + @if test ! -f $@ -a -f $(srcdir)/$@; then \ + echo "cp $(srcdir)/$@ $@"; \ + cp "$(srcdir)/$@" "$@"; \ + fi; + @docs=; \ + list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \ + docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \ + done; \ + if ! test -f $@; then \ + echo "(cd $(dir $@) && \ + $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \ + cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \ + (cd $(dir $@) && \ + $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \ + cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \ + else \ + echo "(cd $(dir $@) && \ + $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \ + (cd $(dir $@) && \ + $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \ + fi + +$(_DOC_MOFILES): %.mo: %.po + $(AM_V_at)if ! test -d $(dir $@); then mkdir "$(dir $@)"; fi + $(GDU_V_MSGFMT)msgfmt -o $@ $< + +# FIXME: fix the dependancy +# FIXME: hook xml2po up +$(_DOC_LC_DOCS) : $(_DOC_MOFILES) +$(_DOC_LC_DOCS) : $(_DOC_C_DOCS) + $(AM_V_at)if ! test -d $(dir $@); then mkdir $(dir $@); fi + $(GDU_V_XML2PO)if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \ + mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \ + if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \ + (cd $(dir $@) && \ + $(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \ + "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \ + cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp) + +## @ _DOC_POT +## A pot file +_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot,$(if $(DOC_ID),$(DOC_ID).pot)) +.PHONY: pot +pot: $(_DOC_POT) +$(_DOC_POT): $(_DOC_C_DOCS_NOENT) + $(GDU_V_XML2PO)$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^ + + +################################################################################ +## @@ All Documentation + +## @ _DOC_HTML_ALL +## All HTML documentation, only if it's built +_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \ + $(_DOC_C_HTML) $(_DOC_LC_HTML)) + +_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml) + +$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS) + $(GDU_V_DB2HTM)xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@) + + +################################################################################ +## All + +all: \ + $(_DOC_C_DOCS) $(_DOC_LC_DOCS) \ + $(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \ + $(_DOC_HTML_ALL) $(_DOC_POFILES) + + +################################################################################ +## Clean + +.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir + +clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML) +clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML) +clean-doc-lc: + rm -f $(_DOC_LC_DOCS) + rm -f $(_DOC_MOFILES) + @list='$(_DOC_POFILES)'; for po in $$list; do \ + if ! test "$$po" -ef "$(srcdir)/$$po"; then \ + echo "rm -f $$po"; \ + rm -f "$$po"; \ + fi; \ + done +# .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x + @for lc in C $(_DOC_REAL_LINGUAS); do \ + if test -f "$$lc/.xml2po.mo"; then \ + echo "rm -f $$lc/.xml2po.mo"; \ + rm -f "$$lc/.xml2po.mo"; \ + fi; \ + done +clean-doc-dir: clean-doc-lc + @for lc in C $(_DOC_REAL_LINGUAS); do \ + for dir in `find $$lc -depth -type d`; do \ + if ! test $$dir -ef $(srcdir)/$$dir; then \ + echo "rmdir $$dir"; \ + rmdir "$$dir"; \ + fi; \ + done; \ + done + +_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf) +_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk) +_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc) +_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir) + +clean-local: \ + $(_clean_omf) $(_clean_dsk) \ + $(_clean_lc) $(_clean_dir) +distclean-local: \ + $(_clean_omf) $(_clean_dsk) \ + $(_clean_lc) $(_clean_dir) +mostlyclean-local: \ + $(_clean_omf) $(_clean_dsk) \ + $(_clean_lc) $(_clean_dir) +maintainer-clean-local: \ + $(_clean_omf) $(_clean_dsk) \ + $(_clean_lc) $(_clean_dir) + + + +################################################################################ +## Dist + +.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk +doc-dist-hook: \ + $(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs) \ + $(if $(_DOC_C_FIGURES),dist-doc-figs) \ + $(if $(_DOC_OMF_IN),dist-doc-omf) +# $(if $(_DOC_DSK_IN),dist-doc-dsk) + +dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES) + @for lc in C $(_DOC_REAL_LINGUAS); do \ + echo " $(mkinstalldirs) $(distdir)/$$lc"; \ + $(mkinstalldirs) "$(distdir)/$$lc"; \ + done + @list='$(_DOC_C_DOCS)'; \ + for doc in $$list; do \ + if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \ + docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \ + if ! test -d "$(distdir)/$$docdir"; then \ + echo "$(mkinstalldirs) $(distdir)/$$docdir"; \ + $(mkinstalldirs) "$(distdir)/$$docdir"; \ + fi; \ + echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \ + $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \ + done + @list='$(_DOC_LC_DOCS)'; \ + for doc in $$list; do \ + if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \ + docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \ + if ! test -d "$(distdir)/$$docdir"; then \ + echo "$(mkinstalldirs) $(distdir)/$$docdir"; \ + $(mkinstalldirs) "$(distdir)/$$docdir"; \ + fi; \ + echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \ + $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \ + done + @list='$(_DOC_POFILES)'; \ + for doc in $$list; do \ + if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \ + docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \ + if ! test -d "$(distdir)/$$docdir"; then \ + echo "$(mkinstalldirs) $(distdir)/$$docdir"; \ + $(mkinstalldirs) "$(distdir)/$$docdir"; \ + fi; \ + echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \ + $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \ + done + +dist-doc-figs: $(_DOC_SRC_FIGURES) + @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \ + for fig in $$list; do \ + if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \ + if test -f "$$d$$fig"; then \ + figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \ + if ! test -d "$(distdir)/$$figdir"; then \ + echo "$(mkinstalldirs) $(distdir)/$$figdir"; \ + $(mkinstalldirs) "$(distdir)/$$figdir"; \ + fi; \ + echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \ + $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \ + fi; \ + done; + +dist-doc-omf: + @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \ + echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \ + $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))" + +dist-doc-dsk: + @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \ + echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \ + $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))" + + + +################################################################################ +## Check + +.PHONY: check-doc-docs check-doc-omf +check: \ + $(if $(DOC_MODULE),check-doc-docs) \ + $(if $(DOC_ID),check-doc-pages) \ + $(if $(_DOC_OMF_IN),check-doc-omf) + +check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) + @for lc in C $(_DOC_REAL_LINGUAS); do \ + if test -f "$$lc"; \ + then d=; \ + xmlpath="$$lc"; \ + else \ + d="$(srcdir)/"; \ + xmlpath="$$lc:$(srcdir)/$$lc"; \ + fi; \ + echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \ + xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \ + done + +check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES) + for lc in C $(_DOC_REAL_LINGUAS); do \ + if test -f "$$lc"; \ + then d=; \ + xmlpath="$$lc"; \ + else \ + d="$(srcdir)/"; \ + xmlpath="$$lc:$(srcdir)/$$lc"; \ + fi; \ + for page in $(DOC_PAGES); do \ + echo "xmllint --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \ + xmllint --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \ + done; \ + done + +check-doc-omf: $(_DOC_OMF_ALL) + @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \ + echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \ + xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \ + done + + + +################################################################################ +## Install + +.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk + +_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE)) + +install-data-local: \ + $(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \ + $(if $(_DOC_HTML_ALL),install-doc-html) \ + $(if $(_DOC_C_FIGURES),install-doc-figs) \ + $(if $(_DOC_OMF_IN),install-doc-omf) +# $(if $(_DOC_DSK_IN),install-doc-dsk) + +install-doc-docs: + @for lc in C $(_DOC_REAL_LINGUAS); do \ + echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \ + $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \ + done + @list='$(_DOC_C_DOCS)'; for doc in $$list; do \ + if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \ + docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \ + docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \ + if ! test -d "$$docdir"; then \ + echo "$(mkinstalldirs) $$docdir"; \ + $(mkinstalldirs) "$$docdir"; \ + fi; \ + echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \ + $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \ + done + @list='$(_DOC_LC_DOCS)'; for doc in $$list; do \ + if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \ + docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \ + docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \ + if ! test -d "$$docdir"; then \ + echo "$(mkinstalldirs) $$docdir"; \ + $(mkinstalldirs) "$$docdir"; \ + fi; \ + echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \ + $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \ + done + +install-doc-figs: + @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \ + for lc in C $(_DOC_REAL_LINGUAS); do \ + figsymlink=false; \ + if test -f "$$lc/$$fig"; then \ + figfile="$$lc/$$fig"; \ + elif test -f "$(srcdir)/$$lc/$$fig"; then \ + figfile="$(srcdir)/$$lc/$$fig"; \ + else \ + figsymlink=true; \ + fi; \ + figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \ + figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \ + if ! test -d "$$figdir"; then \ + echo "$(mkinstalldirs) $$figdir"; \ + $(mkinstalldirs) "$$figdir"; \ + fi; \ + figbase=`echo $$fig | sed -e 's/^.*\///'`; \ + if $$figsymlink; then \ + echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \ + ( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \ + else \ + echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \ + $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \ + fi; \ + done; \ + done + +install-doc-html: + echo install-html + +install-doc-omf: + $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir) + @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \ + echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \ + $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \ + done + @if test "x$(_ENABLE_SK)" = "xtrue"; then \ + echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \ + scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \ + fi; + +install-doc-dsk: + echo install-dsk + + + +################################################################################ +## Uninstall + +.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk +uninstall-local: \ + $(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \ + $(if $(_DOC_HTML_ALL),uninstall-doc-html) \ + $(if $(_DOC_C_FIGURES),uninstall-doc-figs) \ + $(if $(_DOC_OMF_IN),uninstall-doc-omf) +# $(if $(_DOC_DSK_IN),uninstall-doc-dsk) + +uninstall-doc-docs: + @list='$(_DOC_C_DOCS)'; for doc in $$list; do \ + echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \ + rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \ + done + @list='$(_DOC_LC_DOCS)'; for doc in $$list; do \ + echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \ + rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \ + done + +uninstall-doc-figs: + @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \ + echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \ + rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \ + done; + +uninstall-doc-omf: + @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \ + if test "x$(_ENABLE_SK)" = "xtrue"; then \ + echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \ + scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \ + fi; \ + echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \ + rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \ + done Index: mdbtools/m4/gnome-doc-utils.m4 =================================================================== --- /dev/null +++ mdbtools/m4/gnome-doc-utils.m4 @@ -0,0 +1,61 @@ +dnl Do not call GNOME_DOC_DEFINES directly. It is split out from +dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself. +AC_DEFUN([GNOME_DOC_DEFINES], +[ +AC_ARG_WITH([help-dir], + AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),, + [with_help_dir='${datadir}/gnome/help']) +HELP_DIR="$with_help_dir" +AC_SUBST(HELP_DIR) + +AC_ARG_WITH([omf-dir], + AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),, + [with_omf_dir='${datadir}/omf']) +OMF_DIR="$with_omf_dir" +AC_SUBST(OMF_DIR) + +AC_ARG_WITH([help-formats], + AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),, + [with_help_formats='']) +DOC_USER_FORMATS="$with_help_formats" +AC_SUBST(DOC_USER_FORMATS) + +AC_ARG_ENABLE([scrollkeeper], + [AC_HELP_STRING([--disable-scrollkeeper], + [do not make updates to the scrollkeeper database])],, + enable_scrollkeeper=yes) +AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"]) + +dnl disable scrollkeeper automatically for distcheck +DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS" +AC_SUBST(DISTCHECK_CONFIGURE_FLAGS) + +AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"]) +]) + +# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND]) +# +AC_DEFUN([GNOME_DOC_INIT], +[AC_REQUIRE([AC_PROG_LN_S])dnl + +if test -z "$AM_DEFAULT_VERBOSITY"; then + AM_DEFAULT_VERBOSITY=1 +fi +AC_SUBST([AM_DEFAULT_VERBOSITY]) + +ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1]) + +AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required]) +PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required], + [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no]) + +if test "$gdu_cv_have_gdu" = "yes"; then + AC_MSG_RESULT([yes]) + ifelse([$2],,[:],[$2]) +else + AC_MSG_RESULT([no]) + ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3]) +fi + +GNOME_DOC_DEFINES +]) Index: mdbtools/omf.make =================================================================== --- mdbtools.orig/omf.make +++ /dev/null @@ -1,65 +0,0 @@ -# -# No modifications of this Makefile should be necessary. -# -# This file contains the build instructions for installing OMF files. It is -# generally called from the makefiles for particular formats of documentation. -# -# Note that you must configure your package with --localstatedir=/var -# so that the scrollkeeper-update command below will update the database -# in the standard scrollkeeper directory. -# -# If it is impossible to configure with --localstatedir=/var, then -# modify the definition of scrollkeeper_localstate_dir so that -# it points to the correct location. Note that you must still use -# $(localstatedir) in this or when people build RPMs it will update -# the real database on their system instead of the one under RPM_BUILD_ROOT. -# -# Note: This make file is not incorporated into xmldocs.make because, in -# general, there will be other documents install besides XML documents -# and the makefiles for these formats should also include this file. -# -# About this file: -# This file was derived from scrollkeeper_example2, a package -# illustrating how to install documentation and OMF files for use with -# ScrollKeeper 0.3.x and 0.4.x. For more information, see: -# http://scrollkeeper.sourceforge.net/ -# Version: 0.1.3 (last updated: March 20, 2002) -# - -omf_dest_dir=$(datadir)/omf/@PACKAGE@ -scrollkeeper_localstate_dir = $(localstatedir)/scrollkeeper - -# At some point, it may be wise to change to something like this: -# scrollkeeper_localstate_dir = @SCROLLKEEPER_STATEDIR@ - -omf: omf_timestamp - -omf_timestamp: $(omffile) - -for file in $(omffile); do \ - absfile=$(srcdir)/$$file; \ - test -r $$file && absfile=$$file; \ - scrollkeeper-preinstall $(docdir)/$(docname).xml $$absfile $$file.out; \ - done; \ - touch omf_timestamp - -install-data-hook-omf: - $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir) - for file in $(omffile); do \ - absfile=$(srcdir)/$$file.out; \ - test -r $$file.out && absfile=$$file.out; \ - $(INSTALL_DATA) $$absfile $(DESTDIR)$(omf_dest_dir)/$$file; \ - done - -scrollkeeper-update -p $(DESTDIR)$(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir) - -uninstall-local-omf: - -for file in $(omffile); do \ - basefile=`basename $$file`; \ - rm -f $(DESTDIR)$(omf_dest_dir)/$$basefile; \ - done - -rmdir $(DESTDIR)$(omf_dest_dir) - -scrollkeeper-update -p $(DESTDIR)$(scrollkeeper_localstate_dir) - -clean-local-omf: - -for file in $(omffile); do \ - rm -f $$file.out; \ - done Index: mdbtools/src/gmdb2/help/C/Makefile.am =================================================================== --- mdbtools.orig/src/gmdb2/help/C/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -include $(top_srcdir)/xmldocs.make -dist-hook: app-dist-hook - -figdir = figures -docname = gmdb -lang = C -omffile = gmdb-C.omf -entities = legal.xml Index: mdbtools/src/gmdb2/help/C/gmdb-C.omf =================================================================== --- mdbtools.orig/src/gmdb2/help/C/gmdb-C.omf +++ /dev/null @@ -1,32 +0,0 @@ - - - - - camber@ais.org (Brian Bruns) - - - camber@ais.org (Brian Bruns) - - - gmdb Manual V1.0 - - - 2003-01-10 - - - - - User manual for gmdb2. - - - user's guide - - - - - - - - Index: mdbtools/src/gmdb2/help/C/gmdb.xml =================================================================== --- mdbtools.orig/src/gmdb2/help/C/gmdb.xml +++ mdbtools/src/gmdb2/help/C/gmdb.xml @@ -25,6 +25,12 @@ &app; Manual V&manrevision; + + The &app; application is the graphical + interface to MDB Tools. You can use &app; + to view and export data and schema from MDB databases. + + 2003 Brian Bruns @@ -50,6 +56,14 @@
camber@ais.org
+ + Jean-Michel + Vourgère + + MDB Tools Project +
contact_mdbtools@nirgal.com
+
+