Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8c93c6

Browse files
committed
Catch errors in for loop in makefile
Add "|| exit" so that the rule aborts when a command fails.This is the minimal backpatch version. The fix in head is moreelaborate.
1 parentfb69fd1 commitc8c93c6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/makefiles/pgxs.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,26 +98,26 @@ install: all installdirs
9898
ifneq (,$(DATA)$(DATA_built))
9999
@for file in $(addprefix $(srcdir)/, $(DATA)) $(DATA_built); do \
100100
echo "$(INSTALL_DATA) $$file '$(DESTDIR)$(datadir)/$(datamoduledir)'"; \
101-
$(INSTALL_DATA) $$file '$(DESTDIR)$(datadir)/$(datamoduledir)'; \
101+
$(INSTALL_DATA) $$file '$(DESTDIR)$(datadir)/$(datamoduledir)' || exit; \
102102
done
103103
endif# DATA
104104
ifneq (,$(DATA_TSEARCH))
105105
@for file in $(addprefix $(srcdir)/, $(DATA_TSEARCH)); do \
106106
echo "$(INSTALL_DATA) $$file '$(DESTDIR)$(datadir)/tsearch_data'"; \
107-
$(INSTALL_DATA) $$file '$(DESTDIR)$(datadir)/tsearch_data'; \
107+
$(INSTALL_DATA) $$file '$(DESTDIR)$(datadir)/tsearch_data' || exit; \
108108
done
109109
endif# DATA_TSEARCH
110110
ifdefMODULES
111111
@for file in $(addsuffix $(DLSUFFIX), $(MODULES)); do \
112112
echo "$(INSTALL_SHLIB) $$file '$(DESTDIR)$(pkglibdir)'"; \
113-
$(INSTALL_SHLIB) $$file '$(DESTDIR)$(pkglibdir)'; \
113+
$(INSTALL_SHLIB) $$file '$(DESTDIR)$(pkglibdir)' || exit; \
114114
done
115115
endif# MODULES
116116
ifdefDOCS
117117
ifdefdocdir
118118
@for file in $(addprefix $(srcdir)/, $(DOCS)); do \
119119
echo "$(INSTALL_DATA) $$file '$(DESTDIR)$(docdir)/$(docmoduledir)'"; \
120-
$(INSTALL_DATA) $$file '$(DESTDIR)$(docdir)/$(docmoduledir)'; \
120+
$(INSTALL_DATA) $$file '$(DESTDIR)$(docdir)/$(docmoduledir)' || exit; \
121121
done
122122
endif# docdir
123123
endif# DOCS
@@ -127,13 +127,13 @@ endif # PROGRAM
127127
ifdefSCRIPTS
128128
@for file in $(addprefix $(srcdir)/, $(SCRIPTS)); do \
129129
echo "$(INSTALL_SCRIPT) $$file '$(DESTDIR)$(bindir)'"; \
130-
$(INSTALL_SCRIPT) $$file '$(DESTDIR)$(bindir)'; \
130+
$(INSTALL_SCRIPT) $$file '$(DESTDIR)$(bindir)' || exit; \
131131
done
132132
endif# SCRIPTS
133133
ifdefSCRIPTS_built
134134
@for file in $(SCRIPTS_built); do \
135135
echo "$(INSTALL_SCRIPT) $$file '$(DESTDIR)$(bindir)'"; \
136-
$(INSTALL_SCRIPT) $$file '$(DESTDIR)$(bindir)'; \
136+
$(INSTALL_SCRIPT) $$file '$(DESTDIR)$(bindir)' || exit; \
137137
done
138138
endif# SCRIPTS_built
139139

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp