[X2Go-Commits] [x2gokdriveclient] 14/26: Makefile.man2html: copy from X2Go Client.
git-admin at x2go.org
git-admin at x2go.org
Fri Feb 24 17:17:33 CET 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gokdriveclient.
commit a12818bb12aa7b5ced3e131d2ae524fa998964e4
Author: Mihai Moldovan <ionic at ionic.de>
Date: Fri Feb 24 16:02:03 2023 +0100
Makefile.man2html: copy from X2Go Client.
---
Makefile.man2html | 24 ++++++++++++++++++++++++
debian/changelog | 1 +
2 files changed, 25 insertions(+)
diff --git a/Makefile.man2html b/Makefile.man2html
new file mode 100644
index 0000000..36fb984
--- /dev/null
+++ b/Makefile.man2html
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+
+MAN2HTML_BIN = $(shell which man2html)
+MAN2HTML_SRC = man
+BUILD_DIR = .build_man2html
+MAN2HTML_DEST = $(BUILD_DIR)/html
+
+man_pages = $(cd $(MAN2HTML_SRC) && find * -type f)
+
+all: build
+
+build: build_man2html
+
+build_man2html:
+ if [ -n "$(MAN2HTML_BIN)" ]; then \
+ mkdir -p $(MAN2HTML_DEST); \
+ for man_page in $(man_pages); do mkdir -p $$(dirname $(MAN2HTML_DEST)/$$man_page); done; \
+ for man_page in $(man_pages); do $(MAN2HTML_BIN) $(MAN2HTML_SRC)/$$man_page > $(MAN2HTML_DEST)/$$man_page.html; done; \
+ fi
+
+clean: clean_man2html
+
+clean_man2html:
+ rm -Rf $(BUILD_DIR)
diff --git a/debian/changelog b/debian/changelog
index faf3b7f..7c6ac7c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -80,6 +80,7 @@ x2gokdriveclient (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
- *.{h,cpp}: move to src directory.
- Makefile: copy from X2Go Client.
- x2gokdriveclient.spec: fix man page install permissions.
+ - Makefile.man2html: copy from X2Go Client.
* debian/rules:
* Let qmake add general Qt {C{,XX},L}FLAGS instead of overriding them.
Especially needed for C++11 support.
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdriveclient.git
More information about the x2go-commits
mailing list