tweak to improve on previous as discussed with @evbevz; closes #56

This commit is contained in:
Franco Fichtner
2016-11-28 13:07:04 +01:00
parent 471686158e
commit cea4c84913
+19 -4
View File
@@ -93,12 +93,13 @@ manifest: check
@echo "}"
.endif
scripts: check scripts-auto scripts-manual
scripts: check scripts-pre scripts-auto scripts-manual scripts-post
scripts-manual:
scripts-pre:
@for SCRIPT in ${PLUGIN_SCRIPTS}; do \
if [ -f $${SCRIPT} ]; then \
cp $${SCRIPT} ${DESTDIR}/; \
rm -f ${DESTDIR}/$${SCRIPT}; \
if [ -f ${.CURDIR}/$${SCRIPT}.pre ]; then \
cp ${.CURDIR}/$${SCRIPT}.pre ${DESTDIR}/$${SCRIPT}; \
fi; \
done
@@ -134,6 +135,20 @@ scripts-auto:
done; \
fi
scripts-manual:
@for SCRIPT in ${PLUGIN_SCRIPTS}; do \
if [ -f ${.CURDIR}/$${SCRIPT} ]; then \
cp ${.CURDIR}/$${SCRIPT} ${DESTDIR}/$${SCRIPT}; \
fi; \
done
scripts-post:
@for SCRIPT in ${PLUGIN_SCRIPTS}; do \
if [ -f ${.CURDIR}/$${SCRIPT}.post ]; then \
cat ${.CURDIR}/$${SCRIPT}.post >> ${DESTDIR}/$${SCRIPT}; \
fi; \
done
install: check
@mkdir -p ${DESTDIR}${LOCALBASE}
@(cd ${.CURDIR}/src; find * -type f) | while read FILE; do \