Age | Commit message (Collapse) | Author |
|
This commit changes processing of arguments:
* When called without arguments (with or without flags), imv reads list of files
from standard input.
* When called with "-" among arguments, read image data from standard input.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Add Travis CI support
|
|
|
|
Include "-Werror" among flags, so that it is easier to catch compiler warnings.
|
|
Unfortunately, Travis only wants to use Ubuntu LTS releases, so at least until
next Ubuntu LTS release we are stuck with ancient cmocka version. So no
automated testing yet.
|
|
Test
|
|
|
|
It was not fixed after imv_navigator_poll_changed() function was changed.
|
|
Timeouts
|
|
|
|
Add 8-bit variable that is passed to imv_navigator_poll_changed(). Decrement it
on each run of main loop. When it gets to 0, call stat(2).
|
|
Accept slideshow timeout expressed as fractional numbers. It is intentionally
lax, so that arguments like ".1" or "5." are accepted and give no surprises.
|
|
Rewrite manual page using mdoc(7) markup language
|
|
|
|
|
|
Hide functions that are not exposed via headers
|
|
|
|
|
|
|
|
|
|
Use stat(2) to monitor file changes
|
|
Exit(3) if memory allocation fails.
|
|
Makes file monitoring in imv completely POSIX.
|
|
It may save some CPU cycles if there is enough space to grow the array without
copying memory chunks. Two side effects of the change: proper error checking
added and dangerous memcpy(3) call removed.
|
|
Drop `obj` target
|
|
It was introduced to make object files depend on $(BUILDDIR) so that creating it
could be moved into separate rule, executed once. That was a bad idea, because
"obj" had to be phony, thus making all targets that depend on it obsolete
between runs of make. This change introduces order-only rule that makes object
files depend on $(BUILDDIR) without obsoleting other targets.
|
|
More changes to build infrastructure
|
|
Recursively expanded variables (VAR = CONTENT) are evaluated when used. Simply
extended variables (VAR := CONTENT) are expanded immediately, and remain stable
throughout lifetime of the process, reducing fragility of build system.
|
|
* Allow building off read-only source tree.
* Allow setting build directory from environment.
These changes allow parallel building of imv for multiple architectures, which
is used by package management systems of some operating systems.
|
|
|
|
Fixes #61
|
|
The default options block was getting quite ridiculous to try and read.
Let's improve the readability.
|
|
Build infrastructure improvements
|
|
Use default font
|
|
|
|
Also reference the fonts.conf(5) manual, which explains fonts configuration.
|
|
|
|
Don't use "stdin" variable name
|
|
If V variable is set to any value, commands will be echoed to standard output.
|
|
This might be desired when platform has its own, custom layout (eg. OpenBSD or
Solaris), or when user wants to install the program to his home directory.
|
|
When CFLAGS contain "`cmd`" construct, the "cmd" command is executed every time
when make issues shell command with expanded CFLAGS. Using "$(shell cmd)"
instead forces make to expand output of "cmd" into CFLAGS.
|
|
Some package management systems allow users to set default CFLAGS and LDFLAGS
and then supply them to the make via environment. This change makes build
infrastructure respect such settings.
Also, don't force non-essential flags.
|
|
Most package management systems already expect "PREFIX" macro to control
installation path.
|
|
"Monospace" is a font name reserved for default monospace font, which is
supposed to be set to particular font user prefers.
|