Commit d1055282 authored by Kevin Daudt's avatar Kevin Daudt Committed by maxice8

implement build system based on redo

parent 0bc3b27e
redo-ifchange manpages
. ./conf
rm $MAN_1_PAGES $MAN_5_PAGES
MAN_5_PAGES="alint.5.man"
MAN_1_PAGES="apkbuild-lint.1.man aports-lint.1.man"
BINARIES="apkbuild-lint aports-lint"
scdoc <"$2".scd >$3
. ./conf
: ${DESTDIR:=NONE}
: ${PREFIX:=/usr}
: ${MANDIR:=$DESTDIR$PREFIX/share/man}
: ${BINDIR:=$DESTDIR$PREFIX/bin}
if [ "$DESTDIR" = "NONE" ]; then
echo "$0: fatal: set DESTDIR before trying to install." >&2
exit 99
fi
redo-ifchange build
for page in $MAN_1_PAGES
do
install -Dm0644 "$page" "$MANDIR"/man1/"${page%*.man}"
done
for page in $MAN_5_PAGES
do
install -Dm0644 "$page" "$MANDIR"/man5/"${page%*.man}"
done
for binary in $BINARIES
do
install -Dm0755 "$binary" "$BINDIR/$binary"
done
. ./conf
redo-ifchange $MAN_1_PAGES $MAN_5_PAGES
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment