[PATCH bzip2 4/6] make a couple program aliases symlinks instead of copies

~eschwartz eschwartz@git.sr.ht
Fri Jun 3 04:48:15 GMT 2022


From: Eli Schwartz <eschwartz93@gmail.com>

Some programs are installed one way, some are installed the other way.
Be consistent and always use symlinks.
---
 Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 6631733..76dfe9a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -82,8 +82,8 @@ install: bzip2 bzip2recover
 	if ( test ! -d $(DESTDIR)$(mandir)/man1 ) ; then mkdir -p $(DESTDIR)$(mandir)/man1 ; fi
 	if ( test ! -d $(DESTDIR)$(includedir) ) ; then mkdir -p $(DESTDIR)$(includedir) ; fi
 	cp -f bzip2 $(DESTDIR)$(bindir)/bzip2
-	cp -f bzip2 $(DESTDIR)$(bindir)/bunzip2
-	cp -f bzip2 $(DESTDIR)$(bindir)/bzcat
+	ln -s -f bzip2 $(DESTDIR)$(bindir)/bunzip2
+	ln -s -f bzip2 $(DESTDIR)$(bindir)/bzcat
 	cp -f bzip2recover $(DESTDIR)$(bindir)/bzip2recover
 	chmod a+x $(DESTDIR)$(bindir)/bzip2
 	chmod a+x $(DESTDIR)$(bindir)/bunzip2
-- 
2.34.2



More information about the Bzip2-devel mailing list