nsxiv9e22f32
Change location of example scripts (#86)
* Use DOCPREFIX similar to MANPREFIX
+10 −5
5 files changed
- M Makefile +4 −3
- M README.md +4 −0
- R exec/image-info → examples/image-info +0 −0
- R exec/key-handler → examples/key-handler +0 −0
- M nsxiv.1 +2 −2
| @@ -9,6 +9,7 @@ VERSION = 27.1 | |||
| 9 | 9 | # PREFIX for install | |
| 10 | 10 | PREFIX ?= /usr/local | |
| 11 | 11 | MANPREFIX = $(PREFIX)/share/man | |
| 12 | + | DOCPREFIX = $(PREFIX)/share/doc/nsxiv | |
| 12 | 13 | ||
| 13 | 14 | # autoreload backend: inotify/nop | |
| 14 | 15 | AUTORELOAD = inotify | |
| @@ -82,11 +83,11 @@ install: all | |||
| 82 | 83 | install -Dt $(DESTDIR)$(PREFIX)/bin nsxiv | |
| 83 | 84 | @echo "INSTALL nsxiv.1" | |
| 84 | 85 | mkdir -p $(DESTDIR)$(MANPREFIX)/man1 | |
| 85 | − | sed "s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" nsxiv.1 \ | |
| 86 | + | sed "s!DOCPREFIX!$(DOCPREFIX)!g; s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" nsxiv.1 \ | |
| 86 | 87 | >$(DESTDIR)$(MANPREFIX)/man1/nsxiv.1 | |
| 87 | 88 | chmod 644 $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1 | |
| 88 | 89 | @echo "INSTALL share/nsxiv/" | |
| 89 | − | install -Dt $(DESTDIR)$(PREFIX)/share/nsxiv/exec exec/* | |
| 90 | + | install -Dt $(DESTDIR)$(DOCPREFIX)/examples examples/* | |
| 90 | 91 | ||
| 91 | 92 | uninstall: | |
| 92 | 93 | @echo "REMOVE bin/nsxiv" | |
| @@ -94,5 +95,5 @@ uninstall: | |||
| 94 | 95 | @echo "REMOVE nsxiv.1" | |
| 95 | 96 | rm -f $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1 | |
| 96 | 97 | @echo "REMOVE share/nsxiv/" | |
| 97 | − | rm -rf $(DESTDIR)$(PREFIX)/share/nsxiv | |
| 98 | + | rm -rf $(DESTDIR)$(DOCPREFIX) | |
| 98 | 99 | ||
| @@ -87,6 +87,10 @@ You can install nsxiv into a directory of your choice by changing this command t | |||
| 87 | 87 | ||
| 88 | 88 | $ make PREFIX="/your/dir" install | |
| 89 | 89 | ||
| 90 | + | Example scripts are installed using `DOCPREFIX` which defaults to | |
| 91 | + | `/usr/local/share/doc/nsxiv`. You can change `DOCPREFIX` the same way you can | |
| 92 | + | change `PREFIX` shown above. | |
| 93 | + | ||
| 90 | 94 | The build-time specific settings of nsxiv can be found in the file *config.h*. | |
| 91 | 95 | Please check and change them, so that they fit your needs. | |
| 92 | 96 | If the file *config.h* does not already exist, then you have to create it with | |
[No content changes]
[No content changes]
| @@ -428,7 +428,7 @@ and the arguments given to it are: 1) path to image file, 2) image width, | |||
| 428 | 428 | 3) image height. | |
| 429 | 429 | .P | |
| 430 | 430 | There is also an example script installed together with nsxiv as | |
| 431 | − | .IR PREFIX/share/nsxiv/exec/image-info . | |
| 431 | + | .IR DOCPREFIX/examples/image-info . | |
| 432 | 432 | .SH EXTERNAL KEY HANDLER | |
| 433 | 433 | Additional external keyboard commands can be defined using a handler program | |
| 434 | 434 | located in | |
| @@ -446,7 +446,7 @@ where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X | |||
| 446 | 446 | keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix. | |
| 447 | 447 | ||
| 448 | 448 | There is also an example script installed together with nsxiv as | |
| 449 | − | .IR PREFIX/share/nsxiv/exec/key-handler . | |
| 449 | + | .IR DOCPREFIX/examples/key-handler . | |
| 450 | 450 | .SH THUMBNAIL CACHING | |
| 451 | 451 | nsxiv stores all thumbnails under | |
| 452 | 452 | .IR $XDG_CACHE_HOME/nsxiv/ . | |