Commit b4d062ec authored by Dylan Baker's avatar Dylan Baker

Move man files into a man/ directory

parent f6f3326c
......@@ -27,7 +27,7 @@ bzip2recover_LDADD = libbz2.la
bin_SCRIPTS = bzgrep bzmore bzdiff
man_MANS = bzip2.1 bzgrep.1 bzmore.1 bzdiff.1
man_MANS = man/bzip2.1 man/bzgrep.1 man/bzmore.1 man/bzdiff.1
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = bzip2.pc
......@@ -107,7 +107,6 @@ EXTRA_DIST = \
bz-fo.xsl \
bz-html.xsl \
bzip.css \
bzip2.1.preformatted \
bzip2.pc.in \
bzip2.txt \
dlltest.c \
......@@ -117,10 +116,12 @@ EXTRA_DIST = \
libbz2.def \
libbz2.dsp \
makefile.msc \
man/bzip2.1.preformatted \
manual.html \
manual.pdf \
manual.ps \
manual.xml \
man/meson.build \
meson.build \
meson_options.txt \
mk251.c \
......
install_man('bzip2.1', 'bzgrep.1', 'bzdiff.1', 'bzmore.1')
# Install copies of some of the man files
man1dir = join_paths(get_option('prefix'), get_option('mandir'), 'man1')
foreach m : [['bzip2.1', ['bunzip2.1', 'bzcat']],
['bzgrep.1', ['bzegrep.1', 'bzfgrep.1']],
['bzmore.1', ['bzless.1']],
['bzdiff.1', ['bzcmp.1']]]
_input = m[0]
foreach o : m[1]
configure_file(
input : _input,
output : o,
copy : true,
install : true,
install_dir : man1dir,
)
endforeach
endforeach
\ No newline at end of file
......@@ -64,27 +64,6 @@ pkg.generate(
## install headers
install_headers('bzlib.h')
## Install man files
install_man('bzip2.1', 'bzgrep.1', 'bzdiff.1', 'bzmore.1')
# Install copies of some of the man files
man1dir = join_paths(get_option('prefix'), get_option('mandir'), 'man1')
foreach m : [['bzip2.1', ['bunzip2.1', 'bzcat']],
['bzgrep.1', ['bzegrep.1', 'bzfgrep.1']],
['bzmore.1', ['bzless.1']],
['bzdiff.1', ['bzcmp.1']]]
_input = m[0]
foreach o : m[1]
configure_file(
input : _input,
output : o,
copy : true,
install : true,
install_dir : man1dir,
)
endforeach
endforeach
# Generate manual files with xmlproc
build_docs = get_option('docs')
docs = find_program('xsltproc', required : build_docs).found()
......@@ -104,4 +83,5 @@ if docs and prog_sh.found()
endforeach
endif
subdir('man')
subdir('tests')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment