[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] Patch to fix error messages during fresh install
From: |
Chuck Houpt |
Subject: |
Re: [Lynx-dev] Patch to fix error messages during fresh install |
Date: |
Thu, 26 Apr 2007 08:03:54 -0400 |
By private email, address@hidden suggested an improvement to this patch
- switching from if-statement to &&. This also makes it more
consistent with the un-install targets. Improved patch below.
Cheers - Chuck
diff -ruN lynx2-8-7/makefile.in lynx2-8-7-patch/makefile.in
--- lynx2-8-7/makefile.in 2006-11-12 20:29:33.000000000 -0500
+++ lynx2-8-7-patch/makefile.in 2007-03-10 12:17:25.000000000 -0500
@@ -288,7 +288,7 @@
install-bin: $(BINDIR) lynx$x
@MSG_DIR_MAKE@ cd po && $(MAKE) CC="$(CC)" install
- -mv -f $(BINDIR)/lynx$x $(BINDIR)/lynx.old
+ test -e $(BINDIR)/lynx$x && mv -f $(BINDIR)/lynx$x $(BINDIR)/lynx.old
$(INSTALL_PROGRAM) lynx$x $(BINDIR)/lynx$x
install-man : $(MANDIR)
@@ -403,7 +403,7 @@
@$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)"
$(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg
install-lss : $(SYSCONFDIR)
- -mv -f $(SYSCONFDIR)/lynx.lss $(SYSCONFDIR)/lynx.oldlss
+ test -e $(SYSCONFDIR)/lynx.lss && mv -f
$(SYSCONFDIR)/lynx.lss $(SYSCONFDIR)/lynx.oldlss
$(INSTALL_DATA) $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss
uninstall ::