summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-01-23 18:42:38 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-01-23 18:44:23 +0000
commita04c8b80d32557fcd8827d4747ea6766e898b787 (patch)
tree1c983c71c9b2642ced9093e373d0c2cbaaf84b05
parent58db1f5e8d4892364530ddd94305720fe3a58c5a (diff)
downloadmidipix_build-a04c8b80d32557fcd8827d4747ea6766e898b787.tar.bz2
midipix_build-a04c8b80d32557fcd8827d4747ea6766e898b787.tar.xz
vars/git.vars: fix manpage filename generation (via Redfoxmoon.)
subr/build.subr: ensure ${PREFIX_NATIVE}/man is a symlink to ${...}/share/man. Followup to <b5933a508096cb77de8e1fedab23c97aec9d4626>.
-rw-r--r--subr/build.subr4
-rw-r--r--vars/git.vars13
2 files changed, 17 insertions, 0 deletions
diff --git a/subr/build.subr b/subr/build.subr
index 66e45f65..6078cc40 100644
--- a/subr/build.subr
+++ b/subr/build.subr
@@ -76,6 +76,10 @@ create_dirs() {
secure_rm "${__}"; ln -sf -- . "${__}";
fi;
done;
+ if [ ! -L ${PREFIX_NATIVE}/man ]; then
+ secure_rm ${PREFIX_NATIVE}/man;
+ ln -sf share/man ${PREFIX_NATIVE}/man;
+ fi;
insecure_mkdir ${PREFIX_MINIPIX}/bin;
for __ in lib libexec share; do
if [ ! -e ${PREFIX_MINIPIX}/${__} ]; then
diff --git a/vars/git.vars b/vars/git.vars
new file mode 100644
index 00000000..3948b910
--- /dev/null
+++ b/vars/git.vars
@@ -0,0 +1,13 @@
+#
+# . ./build.vars and set -o errexit -o noglob are assumed.
+#
+
+pkg_git_install_post() {
+ for __ in $(find ${PKG_PREFIX}/share/man -name Git*::* -type f); do
+ __new="$(echo ${__} | sed "s/::/./g")";
+ echo mv -f ${__} ${__new};
+ mv -f ${__} ${__new};
+ done;
+};
+
+# vim:filetype=sh