Commit 3023f14c authored by Ondřej Surý's avatar Ondřej Surý

Merge branch 'fail-on-failed-install' into 'master'

Fail on failed install inside for loops

See merge request !751
parents 73b26484 142cb0ab
Pipeline #4605 passed with stages
in 7 minutes and 36 seconds
...@@ -88,12 +88,12 @@ install:: named-checkconf@EXEEXT@ named-checkzone@EXEEXT@ installdirs ...@@ -88,12 +88,12 @@ install:: named-checkconf@EXEEXT@ named-checkzone@EXEEXT@ installdirs
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-checkconf@EXEEXT@ ${DESTDIR}${sbindir} ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-checkconf@EXEEXT@ ${DESTDIR}${sbindir}
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-checkzone@EXEEXT@ ${DESTDIR}${sbindir} ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-checkzone@EXEEXT@ ${DESTDIR}${sbindir}
(cd ${DESTDIR}${sbindir}; rm -f named-compilezone@EXEEXT@; ${LINK_PROGRAM} named-checkzone@EXEEXT@ named-compilezone@EXEEXT@) (cd ${DESTDIR}${sbindir}; rm -f named-compilezone@EXEEXT@; ${LINK_PROGRAM} named-checkzone@EXEEXT@ named-compilezone@EXEEXT@)
for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8; done for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8 || exit 1; done
(cd ${DESTDIR}${mandir}/man8; rm -f named-compilezone.8; ${LINK_PROGRAM} named-checkzone.8 named-compilezone.8) (cd ${DESTDIR}${mandir}/man8; rm -f named-compilezone.8; ${LINK_PROGRAM} named-checkzone.8 named-compilezone.8)
uninstall:: uninstall::
rm -f ${DESTDIR}${mandir}/man8/named-compilezone.8 rm -f ${DESTDIR}${mandir}/man8/named-compilezone.8
for m in ${MANPAGES}; do rm -f ${DESTDIR}${mandir}/man8/$$m ; done for m in ${MANPAGES}; do rm -f ${DESTDIR}${mandir}/man8/$$m || exit 1; done
rm -f ${DESTDIR}${sbindir}/named-compilezone@EXEEXT@ rm -f ${DESTDIR}${sbindir}/named-compilezone@EXEEXT@
${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/named-checkconf@EXEEXT@ ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/named-checkconf@EXEEXT@
${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/named-checkzone@EXEEXT@ ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/named-checkzone@EXEEXT@
......
...@@ -101,12 +101,12 @@ install:: dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@ installdirs ...@@ -101,12 +101,12 @@ install:: dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@ installdirs
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \ ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
nslookup@EXEEXT@ ${DESTDIR}${bindir} nslookup@EXEEXT@ ${DESTDIR}${bindir}
for m in ${MANPAGES}; do \ for m in ${MANPAGES}; do \
${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man1; \ ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man1 || exit 1; \
done done
uninstall:: uninstall::
for m in ${MANPAGES}; do \ for m in ${MANPAGES}; do \
rm -f ${DESTDIR}${mandir}/man1/$$m ; \ rm -f ${DESTDIR}${mandir}/man1/$$m || exit 1; \
done done
${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/nslookup@EXEEXT@ ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/nslookup@EXEEXT@
${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/host@EXEEXT@ ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/host@EXEEXT@
......
...@@ -115,12 +115,12 @@ installdirs: ...@@ -115,12 +115,12 @@ installdirs:
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
install:: ${TARGETS} installdirs install:: ${TARGETS} installdirs
for t in ${TARGETS}; do ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} $$t ${DESTDIR}${sbindir}; done for t in ${TARGETS}; do ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} $$t ${DESTDIR}${sbindir} || exit 1; done
for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8; done for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8 || exit 1; done
uninstall:: uninstall::
for m in ${MANPAGES}; do rm -f ${DESTDIR}${mandir}/man8/$$m ; done for m in ${MANPAGES}; do rm -f ${DESTDIR}${mandir}/man8/$$m || exit 1; done
for t in ${TARGETS}; do ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/$$t ; done for t in ${TARGETS}; do ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/$$t || exit 1; done
clean distclean:: clean distclean::
rm -f ${TARGETS} rm -f ${TARGETS}
...@@ -30,10 +30,10 @@ installdirs: ...@@ -30,10 +30,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/bind9 ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/bind9 || exit 1; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/bind9/$$i ; \ rm -f ${DESTDIR}${includedir}/bind9/$$i || exit 1; \
done done
...@@ -45,16 +45,16 @@ installdirs: ...@@ -45,16 +45,16 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/dns ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/dns || exit 1; \
done done
for i in ${GENHEADERS}; do \ for i in ${GENHEADERS}; do \
${INSTALL_DATA} $$i ${DESTDIR}${includedir}/dns ; \ ${INSTALL_DATA} $$i ${DESTDIR}${includedir}/dns || exit 1; \
done done
uninstall:: uninstall::
for i in ${GENHEADERS}; do \ for i in ${GENHEADERS}; do \
rm -f ${DESTDIR}${includedir}/dns/$$i ; \ rm -f ${DESTDIR}${includedir}/dns/$$i || exit 1; \
done done
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/dns/$$i ; \ rm -f ${DESTDIR}${includedir}/dns/$$i || exit 1; \
done done
...@@ -25,10 +25,10 @@ installdirs: ...@@ -25,10 +25,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/dst ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/dst || exit 1; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/dst/$$i ; \ rm -f ${DESTDIR}${includedir}/dst/$$i || exit 1; \
done done
...@@ -28,7 +28,7 @@ installdirs: ...@@ -28,7 +28,7 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/irs ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/irs || exit 1; \
done done
${INSTALL_DATA} netdb.h ${DESTDIR}${includedir}/irs ${INSTALL_DATA} netdb.h ${DESTDIR}${includedir}/irs
${INSTALL_DATA} platform.h ${DESTDIR}${includedir}/irs ${INSTALL_DATA} platform.h ${DESTDIR}${includedir}/irs
...@@ -37,7 +37,7 @@ uninstall:: ...@@ -37,7 +37,7 @@ uninstall::
rm -f ${DESTDIR}${includedir}/irs/platform.h rm -f ${DESTDIR}${includedir}/irs/platform.h
rm -f ${DESTDIR}${includedir}/irs/netdb.h rm -f ${DESTDIR}${includedir}/irs/netdb.h
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/irs/$$i ; \ rm -f ${DESTDIR}${includedir}/irs/$$i || exit 1; \
done done
distclean:: distclean::
......
...@@ -22,5 +22,5 @@ installdirs: ...@@ -22,5 +22,5 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/irs ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/irs || exit 1; \
done done
...@@ -32,7 +32,7 @@ HEADERS = aes.h app.h assertions.h atomic.h backtrace.h base32.h base64.h \ ...@@ -32,7 +32,7 @@ HEADERS = aes.h app.h assertions.h atomic.h backtrace.h base32.h base64.h \
radix.h random.h ratelimiter.h refcount.h regex.h \ radix.h random.h ratelimiter.h refcount.h regex.h \
region.h resource.h result.h resultclass.h rwlock.h \ region.h resource.h result.h resultclass.h rwlock.h \
safe.h serial.h sha1.h sha2.h sockaddr.h socket.h \ safe.h serial.h sha1.h sha2.h sockaddr.h socket.h \
stats.h stdio.h stdlib.h strerr.h string.h symtab.h \ stats.h stdio.h strerr.h string.h symtab.h \
task.h taskpool.h timer.h tm.h types.h util.h version.h \ task.h taskpool.h timer.h tm.h types.h util.h version.h \
xml.h xml.h
...@@ -46,14 +46,14 @@ installdirs: ...@@ -46,14 +46,14 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/isc ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/isc || exit 1; \
done done
${INSTALL_DATA} platform.h ${DESTDIR}${includedir}/isc ${INSTALL_DATA} platform.h ${DESTDIR}${includedir}/isc
uninstall:: uninstall::
rm -f ${DESTDIR}${includedir}/isc/platform.h rm -f ${DESTDIR}${includedir}/isc/platform.h
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/isc/$$i ; \ rm -f ${DESTDIR}${includedir}/isc/$$i || exit 1; \
done done
distclean:: distclean::
......
...@@ -29,10 +29,10 @@ installdirs: ...@@ -29,10 +29,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/pk11 ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/pk11 || exit 1; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/pk11/$$i ; \ rm -f ${DESTDIR}${includedir}/pk11/$$i || exit 1; \
done done
...@@ -29,10 +29,10 @@ installdirs: ...@@ -29,10 +29,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/pkcs11 ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/pkcs11 || exit 1; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/pkcs11/$$i ; \ rm -f ${DESTDIR}${includedir}/pkcs11/$$i || exit 1; \
done done
...@@ -25,10 +25,10 @@ installdirs: ...@@ -25,10 +25,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/isc ; \ ${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/isc || exit 1; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/isc/$$i ; \ rm -f ${DESTDIR}${includedir}/isc/$$i || exit 1; \
done done
...@@ -14,7 +14,7 @@ top_srcdir = @top_srcdir@ ...@@ -14,7 +14,7 @@ top_srcdir = @top_srcdir@
VERSION=@BIND9_VERSION@ VERSION=@BIND9_VERSION@
HEADERS = dir.h net.h netdb.h offset.h stat.h \ HEADERS = dir.h net.h netdb.h offset.h stat.h \
stdtime.h strerror.h syslog.h time.h stdtime.h syslog.h time.h
SUBDIRS = SUBDIRS =
TARGETS = TARGETS =
...@@ -26,10 +26,10 @@ installdirs: ...@@ -26,10 +26,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/isc ; \ ${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/isc || exit 1; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/isc/$$i ; \ rm -f ${DESTDIR}${includedir}/isc/$$i || exit 1; \
done done
...@@ -22,10 +22,10 @@ installdirs: ...@@ -22,10 +22,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/pkcs11 ; \ ${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/pkcs11 || exit 1; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/pkcs11/$$i ; \ rm -f ${DESTDIR}${includedir}/pkcs11/$$i || exit 1; \
done done
...@@ -26,5 +26,5 @@ installdirs: ...@@ -26,5 +26,5 @@ installdirs:
install:: installdirs install:: installdirs
for i in $(HEADERS); do \ for i in $(HEADERS); do \
$(INSTALL_DATA) $(srcdir)\$$i $(includedir)\isc ; \ $(INSTALL_DATA) $(srcdir)\$$i $(includedir)\isc || exit 1; \
done done
...@@ -22,5 +22,5 @@ installdirs: ...@@ -22,5 +22,5 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/pkcs11 ; \ ${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/pkcs11 || exit 1; \
done done
...@@ -30,10 +30,10 @@ installdirs: ...@@ -30,10 +30,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/isccc ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/isccc || exit 1; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/isccc/$$i ; \ rm -f ${DESTDIR}${includedir}/isccc/$$i || exit 1; \
done done
...@@ -31,10 +31,10 @@ installdirs: ...@@ -31,10 +31,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/isccfg ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/isccfg || exit 1; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/isccfg/$$i ; \ rm -f ${DESTDIR}${includedir}/isccfg/$$i || exit 1; \
done done
...@@ -26,10 +26,10 @@ installdirs: ...@@ -26,10 +26,10 @@ installdirs:
install:: installdirs install:: installdirs
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/ns ; \ ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/ns || exit 1 ; \
done done
uninstall:: uninstall::
for i in ${HEADERS}; do \ for i in ${HEADERS}; do \
rm -f ${DESTDIR}${includedir}/ns/$$i ; \ rm -f ${DESTDIR}${includedir}/ns/$$i || exit 1 ; \
done done
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