From d007a52a3ca094d863f64391c92aead1f660e56e Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 12 Feb 2010 02:19:09 +0000 Subject: [PATCH] add diffimg.1 and vimdot.1 man pages provided by: David Claughton --- contrib/diffimg/.cvsignore | 1 + contrib/diffimg/Makefile.am | 11 ++++++++++- contrib/diffimg/diffimg.1 | 21 +++++++++++++++++++++ plugin/xlib/.cvsignore | 1 + plugin/xlib/Makefile.am | 13 ++++++++++--- plugin/xlib/vimdot.1 | 23 +++++++++++++++++++++++ 6 files changed, 66 insertions(+), 4 deletions(-) create mode 100644 contrib/diffimg/diffimg.1 create mode 100644 plugin/xlib/vimdot.1 diff --git a/contrib/diffimg/.cvsignore b/contrib/diffimg/.cvsignore index 3924232b3..90be43749 100644 --- a/contrib/diffimg/.cvsignore +++ b/contrib/diffimg/.cvsignore @@ -4,3 +4,4 @@ Makefile Makefile.in diffimg CMakeFiles CMakeTmp CMakeFiles CMakeCache.txt cmake_install.cmake +*.pdf diff --git a/contrib/diffimg/Makefile.am b/contrib/diffimg/Makefile.am index f339b18b1..b9abbbfa7 100644 --- a/contrib/diffimg/Makefile.am +++ b/contrib/diffimg/Makefile.am @@ -5,6 +5,11 @@ VERSION=0.2 AM_CPPFLAGS = @GD_INCLUDES@ +pdfdir = $(pkgdatadir)/doc/pdf + +man_MANS = diffimg.1 +pdf_DATA = diffimg.1.pdf + if WITH_LIBGD bin_PROGRAMS = diffimg endif @@ -19,6 +24,9 @@ else diffimg_LDADD = @GD_LIBS@ @MATH_LIBS@ endif +diffimg.1.pdf: $(srcdir)/diffimg.1 + - $(GROFF) -Tps -man $(srcdir)/dot.1 | $(PS2PDF) - - >diffimg.1.pdf + GRAPH = "digraph G { hello -> world }" test: diffimg @@ -29,4 +37,5 @@ test: diffimg if `./diffimg hello1.png hello2.png >test2.png`;then echo same;else echo different;fi CLEANFILES = *.png -EXTRA_DIST = diffimg.vcproj +EXTRA_DIST = diffimg.vcproj diffimg.1 diffimg.1.pdf +DISTCLEANFILES = diffimg.1.pdf diff --git a/contrib/diffimg/diffimg.1 b/contrib/diffimg/diffimg.1 new file mode 100644 index 000000000..09a6d899b --- /dev/null +++ b/contrib/diffimg/diffimg.1 @@ -0,0 +1,21 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH DIFFIMG 1 "Jan 31, 2010" +.SH NAME +diffimg \- Calculates intersection between two images +.SH SYNOPSIS +.B diffimg +.RI image1 +.RI image2 +.RI [ outimage ] +.SH DESCRIPTION +.PP +\fBdiffimg\fP generates an image where each pixel is the difference between the corresponding pixel +in each of the two source images. Thus, if the source images are the same the resulting image will +be black, otherwise it will have regions of non-black where the images differ. +.PP +Currently supports: .png, .gif, .jpg, and .ps by using ghostscript +.SH AUTHOR +diffimg was written by John Ellson +.PP +This manual page was written by David Claughton , +for the Debian project (but may be used by others). diff --git a/plugin/xlib/.cvsignore b/plugin/xlib/.cvsignore index fa8ad589c..1f376812e 100644 --- a/plugin/xlib/.cvsignore +++ b/plugin/xlib/.cvsignore @@ -7,3 +7,4 @@ Makefile.in CMakeFiles *.cmake vimdot +*.pdf diff --git a/plugin/xlib/Makefile.am b/plugin/xlib/Makefile.am index 4c713ae32..c6873879c 100644 --- a/plugin/xlib/Makefile.am +++ b/plugin/xlib/Makefile.am @@ -7,6 +7,8 @@ else GRAPH = graph endif +pdfdir = $(pkgdatadir)/doc/pdf + AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/lib/common \ @@ -28,6 +30,12 @@ bin_SCRIPTS = vimdot endif endif +man_MANS = vimdot.1 +pdf_DATA = vimdot.1.pdf + +vimdot.1.pdf: $(srcdir)/vimdot.1 + - $(GROFF) -Tps -man $(srcdir)/dot.1 | $(PS2PDF) - - >vimdot.1.pdf + libgvplugin_xlib_C_la_SOURCES = \ gvplugin_xlib.c \ gvdevice_xlib.c @@ -48,7 +56,6 @@ vimdot: $(top_srcdir)/plugin/xlib/vimdot.sh cp $(top_srcdir)/plugin/xlib/vimdot.sh vimdot chmod +x vimdot -EXTRA_DIST = vimdot.sh - -DISTCLEANFILES = vimdot +EXTRA_DIST = vimdot.sh vimdot.1 vimdot.1.pdf +DISTCLEANFILES = vimdot vimdot.1.pdf diff --git a/plugin/xlib/vimdot.1 b/plugin/xlib/vimdot.1 new file mode 100644 index 000000000..cfb477544 --- /dev/null +++ b/plugin/xlib/vimdot.1 @@ -0,0 +1,23 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH VIMDOT 1 "Jan 31, 2010" +.SH NAME +vimdot \- Combined text editor and dot viewer +.SH SYNOPSIS +.B vimdot +.RI [ file ] +.SH DESCRIPTION +.PP +\fBvimdot\fP is a simple script which launches the gvim or vim editor along with a GUI window showing the +dot output of the edited file. The dot output window automatically refreshes everytime the file is saved +in the editor. +.PP +If no filename is given, vimdot will use 'noname.dot' and initialise it with an example graph to get you +started. +.SH SEE ALSO +.br +vim(1), dot(1) +.SH AUTHOR +vimdot was written by John Ellson +.PP +This manual page was written by David Claughton , +for the Debian project (but may be used by others). -- 2.40.0