Library functions and modules should be in the 3 man page section. Also the files should end in '.3'

pull/1219/head
Tim Bielawa 12 years ago
parent 53d24ef002
commit 85fb7c6d4b

@ -161,4 +161,4 @@ deb: debian
# for arch or gentoo, read instructions in the appropriate 'packaging' subdirectory directory # for arch or gentoo, read instructions in the appropriate 'packaging' subdirectory directory
modulepages: modulepages:
hacking/module_formatter.py -A $(VERSION) -t man -o docs/man/man1/ --module-dir=library --template-dir=hacking/templates hacking/module_formatter.py -A $(VERSION) -t man -o docs/man/man3/ --module-dir=library --template-dir=hacking/templates

@ -251,7 +251,7 @@ def main():
if args.type == 'man': if args.type == 'man':
env.filters['jpfunc'] = man_ify env.filters['jpfunc'] = man_ify
template = env.get_template('man.j2') template = env.get_template('man.j2')
outputname = "ansible.%s.man" outputname = "ansible.%s.3"
includecmt = "" includecmt = ""
includefmt = "" includefmt = ""
if args.type == 'rst': if args.type == 'rst':

@ -40,8 +40,9 @@ are transferred to managed machines automatically.
mkdir -p $RPM_BUILD_ROOT/etc/ansible/ mkdir -p $RPM_BUILD_ROOT/etc/ansible/
cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/ cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/
cp examples/ansible.cfg $RPM_BUILD_ROOT/etc/ansible/ cp examples/ansible.cfg $RPM_BUILD_ROOT/etc/ansible/
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/ mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man1,man3}/
cp -v docs/man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1/ cp -v docs/man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
cp -v docs/man/man3/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3/
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/ansible mkdir -p $RPM_BUILD_ROOT/%{_datadir}/ansible
cp -v library/* $RPM_BUILD_ROOT/%{_datadir}/ansible/ cp -v library/* $RPM_BUILD_ROOT/%{_datadir}/ansible/
@ -56,6 +57,7 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) %{_sysconfdir}/ansible %config(noreplace) %{_sysconfdir}/ansible
%doc README.md PKG-INFO COPYING %doc README.md PKG-INFO COPYING
%doc %{_mandir}/man1/ansible* %doc %{_mandir}/man1/ansible*
%doc %{_mandir}/man3/ansible.*
%doc examples/playbooks %doc examples/playbooks
%changelog %changelog

Loading…
Cancel
Save