releasetools: use build system macros

This commit is contained in:
Thomas Veerman 2012-06-26 09:31:30 +00:00
parent c58712f0f0
commit f26d79e0ff

View file

@ -3,6 +3,7 @@
.include "nbsd.config" .include "nbsd.config"
.include <bsd.own.mk> .include <bsd.own.mk>
.include <bsd.sys.mk>
u=/usr u=/usr
MDEC= /usr/mdec MDEC= /usr/mdec
@ -76,7 +77,7 @@ bootable:
hdboot: services hdboot: services
rm -rf ${DESTDIR}/boot/minix/.temp/ rm -rf ${DESTDIR}/boot/minix/.temp/
mkdir -p ${DESTDIR}/boot/minix/.temp ${INSTALL_DIR} ${DESTDIR}/boot/minix/.temp
# mod_0 is used to make alphabetical order equal to the boot order # mod_0 is used to make alphabetical order equal to the boot order
n=0; \ n=0; \
for i in ${PROGRAMS}; \ for i in ${PROGRAMS}; \
@ -84,18 +85,18 @@ hdboot: services
n=`expr $$n + 1`; \ n=`expr $$n + 1`; \
[ "$$n" -ge 10 ] && prefix="mod" || prefix="mod0"; \ [ "$$n" -ge 10 ] && prefix="mod" || prefix="mod0"; \
newname="${DESTDIR}/boot/minix/.temp/$${prefix}$${n}_`basename $$i`"; \ newname="${DESTDIR}/boot/minix/.temp/$${prefix}$${n}_`basename $$i`"; \
cp $$i $$newname; \ ${INSTALL} $$i $$newname; \
strip -s $$newname; \ ${STRIP} -s $$newname; \
gzip $$newname; \ gzip $$newname; \
done done
cp ../kernel/kernel ${DESTDIR}/boot/minix/.temp/ cp ../kernel/kernel ${DESTDIR}/boot/minix/.temp/
strip -s ${DESTDIR}/boot/minix/.temp/kernel ${STRIP} -s ${DESTDIR}/boot/minix/.temp/kernel
if [ "${MKINSTALLBOOT}" != "no" ] ; then \ if [ "${MKINSTALLBOOT}" != "no" ] ; then \
sh mkboot $@; \ ${HOST_SH} mkboot $@; \
sh ../commands/update_bootcfg/update_bootcfg.sh; \ ${HOST_SH} ../commands/update_bootcfg/update_bootcfg.sh;\
else \ else \
${INSTALL_DIR} ${DESTDIR}/multiboot; \ ${INSTALL_DIR} ${DESTDIR}/multiboot; \
cp ${DESTDIR}/boot/minix/.temp/* ${DESTDIR}/multiboot; \ ${INSTALL} ${DESTDIR}/boot/minix/.temp/* ${DESTDIR}/multiboot; \
fi fi
fdboot: fdboot: