Skip to content

Commit 970095a

Browse files
authored
Merge pull request #602 from shwestrick/fix-chmod-as-root-error
fix #601: use 'chmod a-w' instead of 'chmod -w'
2 parents ae18adc + d4fb05c commit 970095a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mlton/Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ front-end/%.lex.sml: front-end/%.lex
109109
$(SED) -e 's/in Vector.fromList(List.map g/in Vector.fromList(Pervasive.List.map g/' $<.sml.in > $<.sml
110110
$(RM) $<.sml.in
111111
$(CP) $<.sml $<.sml.boot
112-
$(CHMOD) -w $<.*
112+
$(CHMOD) a-w $<.*
113113
else
114114
front-end/%.lex.sml: front-end/%.lex.sml.boot
115115
$(RM) $@
116116
$(CP) $< $@
117-
$(CHMOD) -w $@
117+
$(CHMOD) a-w $@
118118
endif
119119

120120
ifeq (true,$(call HAVE_CMD,$(RUN_MLYACC)))
@@ -131,16 +131,16 @@ front-end/%.grm.sig front-end/%.grm.sml: front-end/%.grm
131131
$(SED) -e 's/in Array.fromList(List.map actionRowLookUp actionRowNumbers)/in Array.fromList(Pervasive.List.map actionRowLookUp actionRowNumbers)/' $<.sml.in > $<.sml
132132
$(RM) $<.sml.in
133133
$(CP) $<.sml $<.sml.boot
134-
$(CHMOD) -w $<.*
134+
$(CHMOD) a-w $<.*
135135
else
136136
front-end/%.grm.sig: front-end/%.grm.sig.boot
137137
$(RM) $@
138138
$(CP) $< $@
139-
$(CHMOD) -w $@
139+
$(CHMOD) a-w $@
140140
front-end/%.grm.sml: front-end/%.grm.sml.boot
141141
$(RM) $@
142142
$(CP) $< $@
143-
$(CHMOD) -w $@
143+
$(CHMOD) a-w $@
144144
endif
145145

146146
mlton-stubs.mlb: $(shell $(MLBDEPS) ../lib/stubs/mlton-stubs/sources.mlb | $(GREP) 'mlb$$' | $(GREP) -v '$$(SML_LIB)') $(shell $(MLBDEPS) mlton.mlb | $(GREP) 'mlb$$' | $(GREP) -v '$$(SML_LIB)')

0 commit comments

Comments
 (0)