Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Commit

Permalink
Compress man pages
Browse files Browse the repository at this point in the history
It looks like it's required when installing them in the system location.

See issue #138 and PR #139.
  • Loading branch information
lmoureaux committed Aug 13, 2018
1 parent 26e9307 commit 3a27267
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ preprpm: default man
@cp -rf ana_scans.py $(ScriptDir)
@cp -rf anaXDAQLatency.py $(ScriptDir)
@cp -rf packageFiles4Docker.py $(ScriptDir)
-rm -rf $(ManDir)
$(MakeDir) $(ManDir)
@cp -rf doc/_build/man/* $(ManDir)
gzip $(ManDir)/*
-cp -rf README.md LICENSE CHANGELOG.md MANIFEST.in requirements.txt $(PackageDir)
-cp -rf README.md LICENSE CHANGELOG.md MANIFEST.in requirements.txt pkg

Expand Down
2 changes: 1 addition & 1 deletion pkg/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def getdatafiles():
man_sections = {}
for file in listdir(mandir):
print('Found man page: %s' % file)
section = file.split('.')[-1]
section = file.split('.')[-2]
man_sections[section] = man_sections.get(section, []) + [join(mandir, file)]
for section in man_sections:
data_files.append(('share/man/man%s' % section, man_sections[section]))
Expand Down

0 comments on commit 3a27267

Please sign in to comment.