~strahinja/poe

f4bda4eb99286be8d3ae03be31340c1da79653c2 — Страхиња Радић 6 months ago 3e78993 v1.5.9
Migrate from MANDIR to MANPREFIX

Signed-off-by: Страхиња Радић <contact@strahinja.org>
4 files changed, 8 insertions(+), 8 deletions(-)

M INSTALL
M config.redo
M install.do
M uninstall.do
M INSTALL => INSTALL +2 -2
@@ 43,6 43,6 @@ Replace gcc in CC with cc and add -D_BSD_SOURCE, eg:
		-D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE}' \
		./do install

and change MANDIR to
and change MANPREFIX to

	MANDIR=$PREFIX/man/man1
	MANPREFIX=$PREFIX/man

M config.redo => config.redo +2 -2
@@ 2,10 2,10 @@ PREFIX=${PREFIX:-/usr/local}

BINDIR=$PREFIX/bin
DOCDIR=$PREFIX/share/doc/poe
MANDIR=$PREFIX/share/man/man1
MANPREFIX=$PREFIX/share/man

# OpenBSD
#MANDIR=$PREFIX/man/man1
#MANPREFIX=$PREFIX/man

PROGS=poe
DOCS="README LICENSE"

M install.do => install.do +2 -2
@@ 1,6 1,6 @@
redo-ifchange all
. ./config.redo
install -d "$DOCDIR" "$BINDIR" "$MANDIR"
install -d "$DOCDIR" "$BINDIR" "${MANPREFIX}/man1"
for docfile in $DOCS; do
	install -Dm 0644 "${docfile}" "${DOCDIR}/${docfile}"
done


@@ 8,5 8,5 @@ for binfile in $PROGS; do
	install -Dm 0755 "${binfile}" "${BINDIR}/${binfile}"
done
for manfile in $MANPAGES; do
	install -Dm 0644 "${manfile}" "${MANDIR}/${manfile}"
	install -Dm 0644 "${manfile}" "${MANPREFIX}/man1/${manfile}"
done

M uninstall.do => uninstall.do +2 -2
@@ 1,10 1,10 @@
. ./config.redo
for docfile in README LICENSE; do
for docfile in $DOCS; do
	rm -f "${DOCDIR}/${docfile}"
done
for binfile in $PROGS; do
	rm -f "${BINDIR}/${binfile}"
done
for manfile in $MANPAGES; do
	rm -f "${MANDIR}/${manfile}"
	rm -f "${MANPREFIX}/man1/${manfile}"
done