Skip to content

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 cms-gem-daq-project#138 and PR cms-gem-daq-project#139.
  • Loading branch information
lmoureaux committed Jul 19, 2018
1 parent 6c35f05 commit cc83a72
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 @@ -40,7 +40,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 cc83a72

Please sign in to comment.