Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -2991,12 +2991,14 @@ BUILD_SCRIPTS_DIR=build/scripts-$(VERSION)
SCRIPT_IDLE=$(BUILD_SCRIPTS_DIR)/idle$(VERSION)
SCRIPT_PYDOC=$(BUILD_SCRIPTS_DIR)/pydoc$(VERSION)

$(SCRIPT_IDLE): $(srcdir)/Tools/scripts/idle3 $(srcdir)/Misc/relocatable-script-header.in
$(SCRIPT_IDLE) $(SCRIPT_PYDOC): Makefile $(srcdir)/Misc/relocatable-script-header.in

$(SCRIPT_IDLE): $(srcdir)/Tools/scripts/idle3
@$(MKDIR_P) $(BUILD_SCRIPTS_DIR)
($(BIN_SCRIPT_HEADER); sed 1d $(srcdir)/Tools/scripts/idle3) > $@
@chmod +x $@

$(SCRIPT_PYDOC): $(srcdir)/Tools/scripts/pydoc3 $(srcdir)/Misc/relocatable-script-header.in
$(SCRIPT_PYDOC): $(srcdir)/Tools/scripts/pydoc3
@$(MKDIR_P) $(BUILD_SCRIPTS_DIR)
($(BIN_SCRIPT_HEADER); sed 1d $(srcdir)/Tools/scripts/pydoc3) > $@
@chmod +x $@
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Regenerate the ``idle3`` and ``pydoc3`` launchers when reconfiguring
a build so their shebangs reflect the current installation prefix and
``--enable-relocatable`` setting.
Loading