]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
add man page
authorBastian Dehn <hhaalo@arcor.de>
Sat, 26 Sep 2026 16:18:22 +0000 (18:18 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 26 Sep 2026 16:18:22 +0000 (18:18 +0200)
Makefile
src/man/albentohandy.1 [new file with mode: 0644]

index 11795c522c080b47b5ebd79eff9fc4023e90a3eb..d9d936594243723fb6487fbeef560391f1a14cfe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ SRCDIR=src
 BINDIR=usr/bin
 LIBDIR=usr/lib/$(NAME)
 SHAREDIR=usr/share/doc/$(NAME)
+MANDIR=usr/share/man
 PACKAGE=$(NAME)_$(VERSION)-$(REVISION)$(EXTRA_VERSION)_x86_64
 
 .PHONY: all build test clean package
@@ -66,6 +67,11 @@ $(BUILDDIR)/$(PACKAGE)/$(SHAREDIR)/albentohandy.conf:
        cp $(SRCDIR)/albentohandy.conf $(@)
        chmod 644 $(@)
 
+$(BUILDDIR)/$(PACKAGE)/$(MANDIR)/man1/albentohandy.1.gz:
+       mkdir --parents $(@D)
+       gzip --stdout --no-name --best $(SRCDIR)/man/albentohandy.1 > $(@)
+       chmod 644 $(@)
+
 $(BUILDDIR)/$(PACKAGE)/$(SHAREDIR)/copyright:
        mkdir --parents $(@D)
        cp $(SRCDIR)/debian/copyright $(@)
@@ -88,6 +94,7 @@ $(BUILDDIR)/$(PACKAGE).deb: $(BUILDDIR)/$(PACKAGE)/$(BINDIR)/albentohandy \
        $(BUILDDIR)/$(PACKAGE)/$(SHAREDIR)/albentohandy.conf \
        $(BUILDDIR)/$(PACKAGE)/$(SHAREDIR)/copyright \
        $(BUILDDIR)/$(PACKAGE)/$(SHAREDIR)/changelog.gz \
+       $(BUILDDIR)/$(PACKAGE)/$(MANDIR)/man1/albentohandy.1.gz \
        $(BUILDDIR)/$(PACKAGE)/DEBIAN/control
        mkdir --parents $(@D)
        umask 0022
diff --git a/src/man/albentohandy.1 b/src/man/albentohandy.1
new file mode 100644 (file)
index 0000000..ca4ff61
--- /dev/null
@@ -0,0 +1,17 @@
+.TH albentohandy 1 2026-09-26
+
+.SH NAME
+albentohandy - convert flac to ogg, mp3, opus or flac from music collection
+
+.SH SYNOPSIS
+albentohandy [-3fho]"
+
+.SH OPTIONS
+.P
+.EX
+-3    convert to mp3"
+-f    convert to flac with cover"
+-h    show this usage"
+-o    convert to opus"
+.EE
+.P
\ No newline at end of file