Skip to content

Commit 88d149a

Browse files
committed
Add escript to bootstrap/bin
1 parent 69f7630 commit 88d149a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: Makefile.in

+9-1
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ ifeq ($(TARGET),win32)
502502
bootstrap_setup: check_recreate_primary_bootstrap bootstrap_setup_target
503503
@rm -f $(BOOTSTRAP_ROOT)/bootstrap/bin/erl.exe \
504504
$(BOOTSTRAP_ROOT)/bootstrap/bin/erlc.exe \
505+
$(BOOTSTRAP_ROOT)/bootstrap/bin/escript.exe \
505506
$(BOOTSTRAP_ROOT)/bootstrap/bin/erl.ini \
506507
$(BOOTSTRAP_ROOT)/bootstrap/bin/beam.dll
507508
make_bootstrap_ini.sh $(BOOTSTRAP_ROOT)/bootstrap \
@@ -510,8 +511,10 @@ bootstrap_setup: check_recreate_primary_bootstrap bootstrap_setup_target
510511
$(BOOTSTRAP_ROOT)/bootstrap/bin/erlc.exe
511512
@cp $(ERL_TOP)/bin/$(TARGET)/erl.exe \
512513
$(BOOTSTRAP_ROOT)/bootstrap/bin/erl.exe
514+
@cp $(ERL_TOP)/bin/$(TARGET)/escript.exe \
515+
$(BOOTSTRAP_ROOT)/bootstrap/bin/escript.exe
513516
else
514-
bootstrap_setup: check_recreate_primary_bootstrap bootstrap_setup_target $(BOOTSTRAP_ROOT)/bootstrap/bin/erl $(BOOTSTRAP_ROOT)/bootstrap/bin/erlc
517+
bootstrap_setup: check_recreate_primary_bootstrap bootstrap_setup_target $(BOOTSTRAP_ROOT)/bootstrap/bin/erl $(BOOTSTRAP_ROOT)/bootstrap/bin/erlc $(BOOTSTRAP_ROOT)/bootstrap/bin/escript
515518

516519
$(BOOTSTRAP_ROOT)/bootstrap/bin/erl: $(ERL_TOP)/erts/etc/unix/erl.src.src $(BOOTSTRAP_ROOT)/bootstrap/target
517520
@rm -f $(BOOTSTRAP_ROOT)/bootstrap/bin/erl
@@ -526,6 +529,11 @@ $(BOOTSTRAP_ROOT)/bootstrap/bin/erlc: $(ERL_TOP)/bin/$(TARGET)/erlc $(BOOTSTRAP_
526529
@rm -f $(BOOTSTRAP_ROOT)/bootstrap/bin/erlc
527530
@cp $(ERL_TOP)/bin/$(TARGET)/erlc $(BOOTSTRAP_ROOT)/bootstrap/bin/erlc
528531
@chmod 755 $(BOOTSTRAP_ROOT)/bootstrap/bin/erlc
532+
533+
$(BOOTSTRAP_ROOT)/bootstrap/bin/escript: $(ERL_TOP)/bin/$(TARGET)/escript $(BOOTSTRAP_ROOT)/bootstrap/target
534+
@rm -f $(BOOTSTRAP_ROOT)/bootstrap/bin/escript
535+
@cp $(ERL_TOP)/bin/$(TARGET)/escript $(BOOTSTRAP_ROOT)/bootstrap/bin/escript
536+
@chmod 755 $(BOOTSTRAP_ROOT)/bootstrap/bin/escript
529537
endif
530538

531539
bootstrap_setup_target:

0 commit comments

Comments
 (0)