Wykres commitów

370 Commity (d6a93b83a7dc3a3871db31ecf11adebe470b52a4)

Autor SHA1 Wiadomość Data
Olaf Meeuwissen bdba3cc073 tools/umax_pp: Fix [-Wunused-variable] compiler warning
The file descriptor is only used in code conditionalised on the
HAVE_LINUX_PPDEV_H preprocessor define.
2017-07-18 20:50:28 +09:00
Olaf Meeuwissen a06e9a4075 Script updating of upstream files 2017-06-12 20:53:53 +09:00
Olaf Meeuwissen baec9c4e26 autofoo: Sync with configure.ac, Makefile.am changes 2017-06-07 22:50:56 +09:00
Olaf Meeuwissen 828f1a3949 style-check: skip directories, sanitize file names
When generating lists of files with `find`, directories may get output
if you try to prune paths and it has a habit of prefixing paths with a
leading `./`.
2017-06-02 21:13:34 +09:00
Olaf Meeuwissen ba8e76d937 .editorconfig: add script to check and fix style issues
The various checks cover all settings in the `.editorconfig` file.
The `--fix` support, however, does not attempt to correct charset
issues because the encoding cannot be determined automatically.

Note that image files as well as generated files in the repository
are exempted from all style checks.
2017-05-31 21:34:59 +09:00
Olaf Meeuwissen 01c5dbc82b .editorconfig: Fix sane-desc tool to match cleaned up references
Changes to the test reference files should not, famous last words ;-),
have any effect on the use of the tool's actual outputs.

Note that the tests use a "concocted" `testfile.desc` as their input.
2017-05-30 22:39:30 +09:00
Olaf Meeuwissen f0f187f995 .editorconfig: trim trailing blank lines 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Jörg Frings-Fürst e21bb28e50 Source code string typo fixes 2017-05-13 18:38:43 +09:00
Olaf Meeuwissen 490c4501c7 Sync autofoo 2016-09-25 17:04:23 +09:00
Olaf Meeuwissen da49686efe sane-find-scanner: disable USB if not supported
This fixes a [-Wpedantic] compiler warning about ISO C forbidding empty
translation units.  The check-usb-chip.c file reduces to such a file in
the case USB support was explicitly disabled or no usable library found.
2016-09-25 17:00:54 +09:00
Olaf Meeuwissen bfd1626c4b Sync autofoo 2016-07-13 23:44:26 +09:00
Olaf Meeuwissen 2481e1e98b Sync autofoo 2016-07-10 21:54:24 +09:00
Olaf Meeuwissen d62d0a2e45 check-po.awk: fix awk invocation
The awk utility has been moved to /usr/bin and the script relies on
features present in gawk but not in mawk.
2016-07-06 20:23:12 +09:00
Olaf Meeuwissen c962368626 Sync autofoo 2016-07-01 23:45:43 +09:00
Olaf Meeuwissen a9c813944e Make libusb-1.0 the default for USB support
When libusb-1.0 is not found, libusb-0.1 will be tried.  On BeOS and
OS2, nothing should have changed in terms of detection of USB support.

On all systems the --enable-libusb* flags are now ignored.  Instead, the
--with-usb and --without-usb flags now control support.  When neither is
given USB support will be enable if possible and disabled otherwise.  If
--with-usb is requested but not possible, ./configure will fail.  There
is no support to prefer libusb-0.1 over libusb-1.0.
2016-07-01 23:44:37 +09:00
Olaf Meeuwissen f03f1f66d4 Sync autofoo files 2016-06-29 22:15:06 +09:00
Olaf Meeuwissen 0c2b86ac0b Fix distcheck issues in tools/
Automake is smart enough these days to compile the *.lo files that are
used when linking.

The umax_pp_CPPFLAGS are useless because backend/umax_pp_low.c undefines
BACKEND_NAME unconditionally and sets it to what was passed here ;-)
2016-06-27 22:40:20 +09:00
Olaf Meeuwissen 81f9557966 Clean up .gitignore file content
Removes empty lines and duplicates (note that .gitignore patterns are
recursive unless anchored with a leading /).
2016-06-27 22:40:20 +09:00
Olaf Meeuwissen cb4924f210 Stop distclean from removing files willy-nilly
The distclean target should only remove files that make creates.  If
there are any that need taking care of, they should be added in on a
per file basis in the Makefile.am that creates it.
2016-06-26 10:24:30 +09:00
Olaf Meeuwissen 8274a52eec Sort .gitignore files 2016-06-26 10:24:30 +09:00
Olaf Meeuwissen bdade6bb07 Sync derived files with previous changes 2016-06-26 10:24:29 +09:00
Olaf Meeuwissen d853463ef1 Sync derived files
This was done with

  AUTOMAKE="automake --add-missing --copy" autoreconf --force

on Debian GNU/Linux 8.5.
2016-06-14 06:30:48 +09:00
Olaf Meeuwissen 16497dc138 Replace convenience variable by its expansion 2016-06-14 05:54:08 +09:00
Olaf Meeuwissen 87e12bbf2e Sync derived files with autoreconf --force
For the record, this was done on Debian GNU/Linux 8.5.
2016-06-13 22:24:21 +09:00
Olaf Meeuwissen 2d6fad58b4 Respect GNU Standards user variables
Several variables are considered "user variables" by the GNU Standards.
This means that the user can pass these to their ./configure and make
invocations as they see fit.  These variables include CPPFLAGS, CFLAGS
and LDFLAGS.

This changeset pushes our use of these variables to the automake shadow
variables, AM_CPPFLAGS, AM_CFLAGS and AM_LDFLAGS, so that user variables
will no longer clobber flags required in order to build.
2016-06-13 22:03:14 +09:00
Olaf Meeuwissen 7a2b112d20 Prefer make variables over literal substitutions
The AC_SUBST and PKG_CHECK_MODULE invocations in configure.ac as well as
acinclude.m4 are sufficient to trigger automake to insert initialization
logic for the variables these introduce.  There is no need to do this by
hand.  Wherever these values are needed, it is better to use a variable.
This allows for one-off overrides on the make command-line (without the
need to run ./configure) for one thing.
2016-06-13 21:50:36 +09:00
Olaf Meeuwissen 2745528b60 Fix non-POSIX automake file variable warning
This addresses warnings about the use of the $(wildcard) function.
It has been replaced by a plain shell glob.  There is one case where
this will result in an error, when there are no matches, but that is
when the targets that use it make no sense.  It is probably good to
get an error in that case.
2016-06-13 21:49:24 +09:00
Volker Diels-Grabsch 6aced758f4 Fix typos in comments
While reading through the SANE sources I noticed some annoying typos
in the comments.  This patch is my contribution to make the SANE
sources slightly more pleasant to read.
2015-12-20 14:43:56 +09:00
m. allan noah 497d591806 automake for recent changes
updates to mustek_usb2, canon_dr and umax_pp require automake run
2015-11-08 17:17:37 -05:00
Thomas Klausner a4cc05f677 Add DragonFly BSD support to sane-find-scanner (fixes 315206) 2015-11-08 18:56:49 +09:00
Olaf Meeuwissen 32c25b8b82 Fix duplicate automake file variable initialization issue
This was introduced in 74c00494.
2015-10-27 21:37:04 +09:00
m. allan noah 2ecf18f6fb autoheader and automake
After recent PNG and SNMP changes, need to run autoheader and automake
2015-10-02 21:53:14 -04:00
m. allan noah 87bfd53512 Run autofoo for recent changes 2015-09-19 13:39:38 -04:00
Olaf Meeuwissen 74c00494b6 Install umax_pp backend tools if the backend is built 2015-09-19 12:02:57 -04:00
m. allan noah 7566619e53 rebuild with automake 1.14.1 2015-08-31 20:58:30 -04:00
Yuri Chornoivan 648d933c56 Fix minor typos in messages and comments 2015-08-31 20:31:54 -04:00
Alessandro Zummo ccd15dc966 Revert "epsonds: enable double feed detection"
This reverts commit 005c3928a5.
2015-04-26 23:09:08 +02:00
Alessandro Zummo 005c3928a5 epsonds: enable double feed detection 2015-04-26 22:44:01 +02:00
Gerhard Jaeger ec4675d4c1 Add LM983x usb chip detection when compiled for libusb-1.0. 2014-01-09 10:59:13 +01:00
Nils Philippsen 758731489d sane-desc: fix faulty udev logic for SCSI devices
SUBSYSTEMS!="..." seems to always match, i.e. skip the SCSI-specific
rules.
2013-11-20 21:49:58 +01:00
Nils Philippsen 66cb9b55c2 remove code which is never reached 2013-11-05 14:47:27 +01:00
Nils Philippsen 3b96baef65 sane-desc: fix udev hwdb generation
Generated hwdb files listed the vendor ID instead of the product ID
which made udevd not recognizing scanner devices as such. Thanks to
Fabrice Bellet who spotted the problem.
2013-10-24 14:22:17 +02:00
Chris Bagwell bc2dc68fa5 Improve snmp detection when cross compiling.
Improving here means do not set LIBS/CFLAGS if library is not detected.
This prevents some unknown options based to ld when host is Linux and
target is mingw32/64.  Further improvements are needed if one wants this
snmp support when cross compiling to really work.

Also, to make commit bisectable, updated all autofoo files using
'autoreconf -i -f' and repatching ltmain.sh.

Also, test-driver was missing from git repo but the Makefile.in
checked in expected it to exist.
2013-08-15 13:10:39 -05:00
Stéphane Voltz 77a7cc4443 changelog entry for hwdb patch, minor cleanups, copyright notice 2013-08-02 22:51:58 +02:00
Tom Gundersen 3087a5efb5 sane-desc: add support for udev's hwdb
udev now comes with a hardware database (hwdb) which is meant to replace large
rule files as the one typically shipped with sane. This should significantly
speed up the processing of usb add events.

Add the required output format and add a special udev output mode which is
produces the udev file to be used with hwdb.

Sample hwdb file: <https://dev.archlinux.org/~tomegun/20-sane.hwdb>.
Sample udev+hwdb rules file:
                       <https://dev.archlinux.org/~tomegun/53-sane.rules>.

Similar support was recently added to gphoto2:
                            <http://sourceforge.net/p/gphoto/code/14490/>.

The new udev rules file does not support old udev/kernels as these anyway
don't support hwdb.

Moreover, it does not come with GROUP=/MODE= or ACL support as this can easily
be done externally by hooking into the libsane_matched envvar. In particular
systemd-logind uses this to do its own ACL handling.
2013-08-02 22:18:11 +02:00
Stéphane Voltz de75a1b9c0 add GL128 detection 2013-06-10 21:57:40 +02:00
Stéphane Voltz f462ab59d1 add GT-6801/6816 chip detection 2013-06-10 21:57:40 +02:00
Stéphane Voltz 4bc8ce9b8b cleanups and final version 2013-06-03 20:59:43 +02:00
Stéphane Voltz 3af775de44 make GL646 detection work again
- add GL646 detection
- don't close USB handle before probing chip so we avoid opening it again
2013-06-03 20:59:43 +02:00