summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-02 10:14:57 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-02 10:14:57 +0000
commit23b1eccaf390eeac5a504b264cf8cd5cf126727f (patch)
tree07d616779f5a670c03e69b05224e479ee697543a
parentUsing rst to generate manpage. (diff)
downloadprogress-linux-metapackages-23b1eccaf390eeac5a504b264cf8cd5cf126727f.tar.xz
progress-linux-metapackages-23b1eccaf390eeac5a504b264cf8cd5cf126727f.zip
Consistently renaming manpages files and sub-directory to man.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--Makefile10
-rw-r--r--man/Makefile (renamed from manpages/Makefile)8
-rw-r--r--man/man.in (renamed from manpages/manpages.in)0
-rw-r--r--man/progress-linux-metapackages.7.rst (renamed from manpages/progress-linux-metapackages.7.rst)0
4 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index b26eab5..4b9d64b 100644
--- a/Makefile
+++ b/Makefile
@@ -38,13 +38,13 @@ install-doc:
cp *.txt $(DESTDIR)/usr/share/doc/$(PROJECT)
install-man:
- # install manpages
+ # install man
for SECTION in $$(seq 1 8); \
do \
- if ls manpages/*.$${SECTION} > /dev/null 2>&1; \
+ if ls man/*.$${SECTION} > /dev/null 2>&1; \
then \
mkdir -p $(DESTDIR)/usr/share/man/man$${SECTION}; \
- cp manpages/*.$${SECTION} $(DESTDIR)/usr/share/man/man$${SECTION}; \
+ cp man/*.$${SECTION} $(DESTDIR)/usr/share/man/man$${SECTION}; \
fi; \
done
@@ -55,10 +55,10 @@ uninstall-doc:
rm -rf $(DESTDIR)/usr/share/doc/$(PROJECT)
uninstall-man:
- # uninstall manpages
+ # uninstall man
for SECTION in $$(seq 1 8); \
do \
- for FILE in manpages/*.$${SECTION}; \
+ for FILE in man/*.$${SECTION}; \
do \
rm -f $(DESTDIR)/usr/share/man/man$${SECTION}/$$(basename $${FILE}); \
done; \
diff --git a/manpages/Makefile b/man/Makefile
index 3ddbdf1..42a10c8 100644
--- a/manpages/Makefile
+++ b/man/Makefile
@@ -33,16 +33,16 @@ SHELL := sh -e
all: build
-build: manpages
+build: man
rebuild: clean build
-manpages: manpages.in *.rst
+man: man.in *.rst
@echo -n "Creating manpages... "
@for FILE in *.rst; \
do \
- cp manpages.in $$(basename $${FILE} .rst); \
+ cp man.in $$(basename $${FILE} .rst); \
$(RST2MAN) $${FILE} | \
sed -e '/^.\\" Man page generated/d' \
-e '/^.\\" Generated by/d' \
@@ -56,4 +56,4 @@ manpages: manpages.in *.rst
clean:
rm -f *.[0-9]
-.PHONY: all clean build rebuild manpages
+.PHONY: all clean build rebuild man
diff --git a/manpages/manpages.in b/man/man.in
index b602b75..b602b75 100644
--- a/manpages/manpages.in
+++ b/man/man.in
diff --git a/manpages/progress-linux-metapackages.7.rst b/man/progress-linux-metapackages.7.rst
index 6eb8603..6eb8603 100644
--- a/manpages/progress-linux-metapackages.7.rst
+++ b/man/progress-linux-metapackages.7.rst