]> granicus.if.org Git - sudo/commitdiff
Move cvtsudoers to section 1.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Sun, 25 Mar 2018 22:16:48 +0000 (16:16 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Sun, 25 Mar 2018 22:16:48 +0000 (16:16 -0600)
doc/Makefile.in
doc/cvtsudoers.mdoc.in

index 00e866d01ce2e98a3d5d10fcb380a4eed17eb24c..9385a6a7cf2ae752549db5cd8681bb3afe428a31 100644 (file)
@@ -53,6 +53,7 @@ mansrcdir = @mansrcdir@
 mantype = @MANTYPE@
 mansectsu = @mansectsu@
 mansectform = @mansectform@
+mandirexe = $(mandir)/@MANDIRTYPE@1
 mandirsu = $(mandir)/@MANDIRTYPE@$(mansectsu)
 mandirform = $(mandir)/@MANDIRTYPE@$(mansectform)
 
@@ -276,7 +277,7 @@ $(srcdir)/cvtsudoers.man.in: $(srcdir)/cvtsudoers.mdoc.in
            printf '.\\" DO NOT EDIT THIS FILE, IT IS NOT THE MASTER!\n' > $@; \
            printf '.\\" IT IS GENERATED AUTOMATICALLY FROM cvtsudoers.mdoc.in\n' >> $@; \
            $(SED) -n -e '/^.Dd/q' -e '/^\.\\/p' $(srcdir)/cvtsudoers.mdoc.in >> $@; \
-           $(SED) -e "s/$$mansectsu/8/g" -e "s/$$mansectform/5/g" $(srcdir)/cvtsudoers.mdoc.in | $(MANDOC) -Tman | $(SED) -e 's/^\(\.TH "SUDOREPLAY" \)"8"\(.*"\)OpenBSD \(.*\)/\1"'$$mansectsu'"\2\3/' -e "s/(5)/($$mansectform)/g" -e "s/(8)/($$mansectsu)/g" >> $@; \
+           $(SED) -e "s/$$mansectsu/8/g" -e "s/$$mansectform/5/g" $(srcdir)/cvtsudoers.mdoc.in | $(MANDOC) -Tman | $(SED) -e "s/(5)/($$mansectform)/g" -e "s/(8)/($$mansectsu)/g" >> $@; \
        fi
 
 $(mansrcdir)/cvtsudoers.man: $(top_builddir)/config.status $(srcdir)/cvtsudoers.man.in
@@ -343,7 +344,7 @@ install: install-doc
 
 install-dirs:
        $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir) \
-           $(DESTDIR)$(mandirsu) $(DESTDIR)$(mandirform)
+           $(DESTDIR)$(mandirexe) $(DESTDIR)$(mandirform) $(DESTDIR)$(mandirsu)
 
 install-binaries:
 
@@ -352,7 +353,7 @@ install-includes:
 install-doc: install-dirs
        for f in $(OTHER_DOCS); do $(INSTALL) $(INSTALL_OWNER) -m 0644 $$f $(DESTDIR)$(docdir); done
        @LDAP@for f in $(OTHER_DOCS_LDAP); do $(INSTALL) $(INSTALL_OWNER) -m 0644 $$f $(DESTDIR)$(docdir); done
-       $(INSTALL) $(INSTALL_OWNER) -m 0644 $(mansrcdir)/cvtsudoers.$(mantype) $(DESTDIR)$(mandirsu)/cvtsudoers.$(mansectsu)
+       $(INSTALL) $(INSTALL_OWNER) -m 0644 $(mansrcdir)/cvtsudoers.$(mantype) $(DESTDIR)$(mandirexe)/cvtsudoers.1
        $(INSTALL) $(INSTALL_OWNER) -m 0644 $(mansrcdir)/sudo.$(mantype) $(DESTDIR)$(mandirsu)/sudo.$(mansectsu)
        $(INSTALL) $(INSTALL_OWNER) -m 0644 $(mansrcdir)/sudo_plugin.$(mantype) $(DESTDIR)$(mandirsu)/sudo_plugin.$(mansectsu)
        $(INSTALL) $(INSTALL_OWNER) -m 0644 $(mansrcdir)/sudoreplay.$(mantype) $(DESTDIR)$(mandirsu)/sudoreplay.$(mansectsu)
@@ -362,7 +363,7 @@ install-doc: install-dirs
        $(INSTALL) $(INSTALL_OWNER) -m 0644 $(mansrcdir)/sudoers_timestamp.$(mantype) $(DESTDIR)$(mandirform)/sudoers_timestamp.$(mansectform)
        @LDAP@$(INSTALL) $(INSTALL_OWNER) -m 0644 $(mansrcdir)/sudoers.ldap.$(mantype) $(DESTDIR)$(mandirform)/sudoers.ldap.$(mansectform)
        @if test -n "$(MANCOMPRESS)"; then \
-           for f in $(mandirsu)/cvtsudoers.$(mansectsu) $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/sudo_plugin.$(mansectsu) $(mandirsu)/sudoreplay.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudo.conf.$(mansectform) $(mandirform)/sudoers.$(mansectform) $(mandirform)/sudoers_timestamp.$(mansectform) $(mandirform)/sudoers.ldap.$(mansectform); do \
+           for f in $(mandirexe)/cvtsudoers.1 $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/sudo_plugin.$(mansectsu) $(mandirsu)/sudoreplay.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudo.conf.$(mansectform) $(mandirform)/sudoers.$(mansectform) $(mandirform)/sudoers_timestamp.$(mansectform) $(mandirform)/sudoers.ldap.$(mansectform); do \
                if test -f $(DESTDIR)$$f; then \
                    echo $(MANCOMPRESS) -f $(DESTDIR)$$f; \
                    $(MANCOMPRESS) -f $(DESTDIR)$$f; \
@@ -381,7 +382,7 @@ install-plugin:
 
 uninstall:
        -rm -rf $(DESTDIR)$(docdir)
-       -rm -f  $(DESTDIR)$(mandirsu)/cvtsudoers.$(mansectsu) \
+       -rm -f  $(DESTDIR)$(mandirexe)/cvtsudoers.1 \
                $(DESTDIR)$(mandirsu)/sudo.$(mansectsu) \
                $(DESTDIR)$(mandirsu)/sudoedit.$(mansectsu) \
                $(DESTDIR)$(mandirsu)/sudo_plugin.$(mansectsu) \
index 2792e1c72afd531acd4c0a45d8c82656a47a9903..a9415d600a507898b1b22855b950d34d3f18471b 100644 (file)
@@ -15,7 +15,7 @@
 .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .Dd March 22, 2018
-.Dt CVTSUDOERS @mansectsu@
+.Dt CVTSUDOERS 1
 .Os Sudo @PACKAGE_VERSION@
 .Sh NAME
 .Nm cvtsudoers