]> code.ossystems Code Review - openembedded-core.git/commitdiff
git: cleanup man install
authorRoss Burton <ross.burton@intel.com>
Thu, 31 Oct 2019 10:57:35 +0000 (10:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Oct 2019 16:07:11 +0000 (16:07 +0000)
Prettify by using shell loops.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/git/git.inc

index 67fc96b7affa346eb31f36bae9dbfb2e2558ad83..95ab397f6af478806e65ff75a3004e8ec482e9a0 100644 (file)
@@ -39,12 +39,12 @@ do_compile_prepend () {
 do_install () {
        oe_runmake install DESTDIR="${D}" bindir=${bindir} \
                template_dir=${datadir}/git-core/templates
-       install -d ${D}/${mandir}/man1
-       install -d ${D}/${mandir}/man5
-       install -d ${D}/${mandir}/man7
-       install -t ${D}/${mandir}/man1 ${WORKDIR}/man1/*
-       install -t ${D}/${mandir}/man5 ${WORKDIR}/man5/*
-       install -t ${D}/${mandir}/man7 ${WORKDIR}/man7/*
+
+       for section in man1 man5 man7; do
+               install -d ${D}/${mandir}/$section
+               install -t ${D}/${mandir}/$section ${WORKDIR}/$section/*
+       done
+
        install -d ${D}/${datadir}/bash-completion/completions/
        install -m 644 ${S}/contrib/completion/git-completion.bash ${D}/${datadir}/bash-completion/completions/git
 }