]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
add man for scantopdf
authorBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 12:45:15 +0000 (14:45 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 12:49:22 +0000 (14:49 +0200)
Makefile
src/man/scantopdf.1 [new file with mode: 0644]

index fe43ac52c8981d3a777eccc741262642d386ae07..57e00c05ca40a5c0ce5b752b28bfb7dc3e509135 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ PACKAGEDIR=$(BUILDDIR)/$(PACKAGENAME)
 PREFIX=usr
 BINDIR=$(PREFIX)/bin
 SHAREDIR=$(PREFIX)/share/doc/$(NAME)
+MANDIR=$(PREFIX)/share/man
 
 ################################################################################
 
@@ -109,6 +110,11 @@ $(PACKAGEDIR)/$(SHAREDIR)/changelog.gz:
        mkdir --parents $(@D)
        gzip --stdout --no-name --best $(SRCDIR)/debian/changelog > $(@)
 
+$(PACKAGEDIR)/$(MANDIR)/man1/scantopdf.1.gz:
+
+       mkdir --parents $(@D)
+       gzip --stdout --no-name --best $(SRCDIR)/man/scantopdf.1 > $(@)
+
 $(BUILDDIR)/$(PACKAGENAME).deb: \
        $(PACKAGEDIR)/$(BINDIR)/scantopdf \
        $(PACKAGEDIR)/$(BINDIR)/scantopdfgray \
@@ -118,6 +124,7 @@ $(BUILDDIR)/$(PACKAGENAME).deb: \
        $(PACKAGEDIR)/$(SHAREDIR)/cutpage.html \
        $(PACKAGEDIR)/$(SHAREDIR)/copyright \
        $(PACKAGEDIR)/$(SHAREDIR)/changelog.gz \
+       $(PACKAGEDIR)/$(MANDIR)/man1/scantopdf.1.gz \
        $(PACKAGEDIR)/DEBIAN/control
 
        mkdir --parents $(@D)
diff --git a/src/man/scantopdf.1 b/src/man/scantopdf.1
new file mode 100644 (file)
index 0000000..346ab09
--- /dev/null
@@ -0,0 +1,16 @@
+.TH scantopdf 1 2026-05-25
+
+.SH NAME
+scantopdf - scan documents to pdf in color
+
+.SH SYNOPSIS
+scantopdf <pagecount> <output> [<keywords>]
+
+.SH OPTIONS
+.P
+.EX
+pagecount     number of pages to scan
+output        output name of pdf file with extension
+keywords      pdf keywords one string comma seperated without spaces
+.EE
+.P
\ No newline at end of file