From e3013e3ed01140185763df2de07bcfba773133e3 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 14 Jan 2005 18:47:42 +0000
Subject: [PATCH] in src/Makefile.am, if we're installing and the "rnano"
 symlink already exists, remove it so that we can create it again without an
 error

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2265 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog       | 3 +++
 src/Makefile.am | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 8847876e..f982a793 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -243,6 +243,9 @@ CVS code -
 	  Piefel)
 - src/Makefile.am:
 	- Add chars.c to nano_SOURCES. (DLR)
+	- If we're installing and the "rnano" symlink already exists,
+	  remove it so that we can create it again without an error.
+	  (DLR)
 
 GNU nano 1.3.5 - 2004.11.22
 - General:
diff --git a/src/Makefile.am b/src/Makefile.am
index c47bb40c..3aa1ff50 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -21,4 +21,4 @@ nano_SOURCES =	chars.c \
 nano_LDADD = @GLIB_LIBS@ @LIBINTL@
 
 install-exec-hook:
-	cd $(DESTDIR)$(bindir) && $(LN_S) nano rnano
+	cd $(DESTDIR)$(bindir) && rm -f rnano && $(LN_S) nano rnano
-- 
GitLab