Skip to content

Commit

Permalink
Merge pull request #602 from shwestrick/fix-chmod-as-root-error
Browse files Browse the repository at this point in the history
fix #601: use 'chmod a-w' instead of 'chmod -w'
  • Loading branch information
MatthewFluet authored Jan 15, 2025
2 parents ae18adc + d4fb05c commit 970095a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mlton/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ front-end/%.lex.sml: front-end/%.lex
$(SED) -e 's/in Vector.fromList(List.map g/in Vector.fromList(Pervasive.List.map g/' $<.sml.in > $<.sml
$(RM) $<.sml.in
$(CP) $<.sml $<.sml.boot
$(CHMOD) -w $<.*
$(CHMOD) a-w $<.*
else
front-end/%.lex.sml: front-end/%.lex.sml.boot
$(RM) $@
$(CP) $< $@
$(CHMOD) -w $@
$(CHMOD) a-w $@
endif

ifeq (true,$(call HAVE_CMD,$(RUN_MLYACC)))
Expand All @@ -131,16 +131,16 @@ front-end/%.grm.sig front-end/%.grm.sml: front-end/%.grm
$(SED) -e 's/in Array.fromList(List.map actionRowLookUp actionRowNumbers)/in Array.fromList(Pervasive.List.map actionRowLookUp actionRowNumbers)/' $<.sml.in > $<.sml
$(RM) $<.sml.in
$(CP) $<.sml $<.sml.boot
$(CHMOD) -w $<.*
$(CHMOD) a-w $<.*
else
front-end/%.grm.sig: front-end/%.grm.sig.boot
$(RM) $@
$(CP) $< $@
$(CHMOD) -w $@
$(CHMOD) a-w $@
front-end/%.grm.sml: front-end/%.grm.sml.boot
$(RM) $@
$(CP) $< $@
$(CHMOD) -w $@
$(CHMOD) a-w $@
endif

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)')
Expand Down

0 comments on commit 970095a

Please sign in to comment.