1 From: Maarten ter Huurne <maarten@treewalker.org>
2 Date: Mon, 15 Sep 2014 00:06:20 +0200
3 Subject: Support overriding SCREEN to get a non-versioned binary
5 If a packager runs "make install SCREEN=screen", do not create
6 "screen" as a symlink to itself.
8 Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
11 1 file changed, 2 insertions(+)
13 diff --git a/Makefile.in b/Makefile.in
14 index 3c12fdb..860f351 100644
17 @@ -86,9 +86,11 @@ install_bin: .version screen
18 $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
19 -chown root $(DESTDIR)$(bindir)/$(SCREEN)
20 -chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
21 +ifneq (${SCREEN},screen)
22 # This doesn't work if $(bindir)/screen is a symlink
23 rm -f $(DESTDIR)$(bindir)/screen
24 (cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
26 cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
28 ###############################################################################