* [B.A.T.M.A.N.] [PATCH] alfred: Add installation of the alfred-gpsd manpage
@ 2013-10-16 15:14 Sven Eckelmann
2013-10-16 15:25 ` Andrew Lunn
2013-10-22 20:34 ` Simon Wunderlich
0 siblings, 2 replies; 3+ messages in thread
From: Sven Eckelmann @ 2013-10-16 15:14 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Sven Eckelmann
It is nice to have a manpage somewhere but the user is most likely more
interested in reading it from a familiar place. Installing it together with the
binary seems appropriate because then the user only has to call his/her prefered
manpage reader to get fast and easy access to information about everything the
alfred-gpsd binary provides.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
Marek: can you create a html manpage for
http://downloads.open-mesh.org/batman/manpages/ ?
Thanks
gpsd/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gpsd/Makefile b/gpsd/Makefile
index eaf390b..9b21652 100644
--- a/gpsd/Makefile
+++ b/gpsd/Makefile
@@ -21,6 +21,7 @@
# alfred-gpsd build
BINARY_NAME = alfred-gpsd
OBJ = alfred-gpsd.o
+MANPAGE = man/alfred-gpsd.8
# alfred flags and options
CFLAGS += -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD -MP
@@ -64,6 +65,7 @@ LINK.o = $(Q_LD)$(CC) $(CFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# standard install paths
PREFIX = /usr/local
SBINDIR = $(PREFIX)/sbin
+MANDIR = $(PREFIX)/share/man
# try to generate revision
REVISION= $(shell if [ -d ../.git ]; then \
@@ -89,7 +91,9 @@ clean:
install: $(BINARY_NAME)
$(MKDIR) $(DESTDIR)$(SBINDIR)
+ $(MKDIR) $(DESTDIR)$(MANDIR)/man8
$(INSTALL) -m 0755 $(BINARY_NAME) $(DESTDIR)$(SBINDIR)
+ $(INSTALL) -m 0644 $(MANPAGE) $(DESTDIR)$(MANDIR)/man8
# load dependencies
DEP = $(OBJ:.o=.d)
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] alfred: Add installation of the alfred-gpsd manpage
2013-10-16 15:14 [B.A.T.M.A.N.] [PATCH] alfred: Add installation of the alfred-gpsd manpage Sven Eckelmann
@ 2013-10-16 15:25 ` Andrew Lunn
2013-10-22 20:34 ` Simon Wunderlich
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2013-10-16 15:25 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking; +Cc: Sven Eckelmann
On Wed, Oct 16, 2013 at 05:14:20PM +0200, Sven Eckelmann wrote:
> It is nice to have a manpage somewhere but the user is most likely more
> interested in reading it from a familiar place. Installing it together with the
> binary seems appropriate because then the user only has to call his/her prefered
> manpage reader to get fast and easy access to information about everything the
> alfred-gpsd binary provides.
>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Thanks Sven
Andrew
> ---
> Marek: can you create a html manpage for
> http://downloads.open-mesh.org/batman/manpages/ ?
>
> Thanks
>
> gpsd/Makefile | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/gpsd/Makefile b/gpsd/Makefile
> index eaf390b..9b21652 100644
> --- a/gpsd/Makefile
> +++ b/gpsd/Makefile
> @@ -21,6 +21,7 @@
> # alfred-gpsd build
> BINARY_NAME = alfred-gpsd
> OBJ = alfred-gpsd.o
> +MANPAGE = man/alfred-gpsd.8
>
> # alfred flags and options
> CFLAGS += -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD -MP
> @@ -64,6 +65,7 @@ LINK.o = $(Q_LD)$(CC) $(CFLAGS) $(LDFLAGS) $(TARGET_ARCH)
> # standard install paths
> PREFIX = /usr/local
> SBINDIR = $(PREFIX)/sbin
> +MANDIR = $(PREFIX)/share/man
>
> # try to generate revision
> REVISION= $(shell if [ -d ../.git ]; then \
> @@ -89,7 +91,9 @@ clean:
>
> install: $(BINARY_NAME)
> $(MKDIR) $(DESTDIR)$(SBINDIR)
> + $(MKDIR) $(DESTDIR)$(MANDIR)/man8
> $(INSTALL) -m 0755 $(BINARY_NAME) $(DESTDIR)$(SBINDIR)
> + $(INSTALL) -m 0644 $(MANPAGE) $(DESTDIR)$(MANDIR)/man8
>
> # load dependencies
> DEP = $(OBJ:.o=.d)
> --
> 1.8.4.rc3
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] alfred: Add installation of the alfred-gpsd manpage
2013-10-16 15:14 [B.A.T.M.A.N.] [PATCH] alfred: Add installation of the alfred-gpsd manpage Sven Eckelmann
2013-10-16 15:25 ` Andrew Lunn
@ 2013-10-22 20:34 ` Simon Wunderlich
1 sibling, 0 replies; 3+ messages in thread
From: Simon Wunderlich @ 2013-10-22 20:34 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Sven Eckelmann
> It is nice to have a manpage somewhere but the user is most likely more
> interested in reading it from a familiar place. Installing it together with
> the binary seems appropriate because then the user only has to call
> his/her prefered manpage reader to get fast and easy access to information
> about everything the alfred-gpsd binary provides.
>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Applied in commit 67e0d7e.
Thanks!
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-22 20:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 15:14 [B.A.T.M.A.N.] [PATCH] alfred: Add installation of the alfred-gpsd manpage Sven Eckelmann
2013-10-16 15:25 ` Andrew Lunn
2013-10-22 20:34 ` Simon Wunderlich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox