1 From: Maarten ter Huurne <maarten@treewalker.org>
2 Date: Sun, 14 Sep 2014 23:58:34 +0200
3 Subject: Do not create backup of old installed binary
5 This is a rather unusual feature that packagers will not expect.
7 Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
10 1 file changed, 4 deletions(-)
12 diff --git a/Makefile.in b/Makefile.in
13 index 187a69b..65549e9 100644
16 @@ -83,12 +83,9 @@ screen: $(OFILES)
17 $(OPTIONS) $(CFLAGS) $<
19 install_bin: .version screen
20 - -if [ -f $(DESTDIR)$(bindir)/$(SCREEN) ] && [ ! -f $(DESTDIR)$(bindir)/$(SCREEN).old ]; \
21 - then mv $(DESTDIR)$(bindir)/$(SCREEN) $(DESTDIR)$(bindir)/$(SCREEN).old; fi
22 $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
23 -chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
24 # This doesn't work if $(bindir)/screen is a symlink
25 - -if [ -f $(DESTDIR)$(bindir)/screen ] && [ ! -f $(DESTDIR)$(bindir)/screen.old ]; then mv $(DESTDIR)$(bindir)/screen $(DESTDIR)$(bindir)/screen.old; fi
26 rm -f $(DESTDIR)$(bindir)/screen
27 (cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
28 cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
29 @@ -113,7 +110,6 @@ installdirs:
31 rm -f $(DESTDIR)$(bindir)/$(SCREEN)
32 rm -f $(DESTDIR)$(bindir)/screen
33 - -mv $(DESTDIR)$(bindir)/screen.old $(DESTDIR)$(bindir)/screen
34 rm -f $(DESTDIR)$(ETCSCREENRC)
35 cd doc; $(MAKE) uninstall