summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-02-11 05:44:20 +0000
committerkientzle <kientzle@FreeBSD.org>2004-02-11 05:44:20 +0000
commit39cf5870aa0708c9abeb54bd01f4ae1654c68923 (patch)
tree0c93d8e8477855c8e6e25595fae15cf59516bf5d /gnu/usr.bin
parent54f5cf33fcbe413600625d19bc10a293403c16de (diff)
downloadFreeBSD-src-39cf5870aa0708c9abeb54bd01f4ae1654c68923.zip
FreeBSD-src-39cf5870aa0708c9abeb54bd01f4ae1654c68923.tar.gz
GNU tar in the base system is now called "gtar"
"tar" is now just a link to "gtar". This lays the groundwork for an orderly migration from GNU tar to some other tar. (First, we introduce the new tar program, then we migrate the 'tar' name, then we remove gtar, with intervals of months between these steps.) Approved by: gordon
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/tar/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/usr.bin/tar/Makefile b/gnu/usr.bin/tar/Makefile
index f548821..1725370 100644
--- a/gnu/usr.bin/tar/Makefile
+++ b/gnu/usr.bin/tar/Makefile
@@ -3,7 +3,12 @@
TARDIR= ${.CURDIR}/../../../contrib/tar
.PATH: ${TARDIR}/lib ${TARDIR}/src
-PROG= tar
+PROG= gtar
+
+.if !defined(WITH_BSDTAR)
+LINKS= ${BINDIR}/gtar ${BINDIR}/tar
+MLINKS= gtar.1 tar.1
+.endif
SUBDIR= doc
@@ -18,4 +23,9 @@ SRCS+= buffer.c compare.c create.c delete.c extract.c incremen.c list.c \
CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} -I${TARDIR}/lib -I${TARDIR}/src
+# "Rename" tar.1 to gtar.1 so that we can install gtar.1 with
+# tar.1 as an optional link (rather than vice versa)
+gtar.1: tar.1
+ cp $(.CURDIR)/tar.1 $(.TARGET)
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud