From: Alp Toker <alp@atoker.com>
To: git@vger.kernel.org
Subject: [PATCH] Install built-ins as symlinks
Date: Tue, 11 Jul 2006 11:19:38 +0100 [thread overview]
Message-ID: <11526131792377-git-send-email-alp@atoker.com> (raw)
In-Reply-To: <11526131792773-git-send-email-alp@atoker.com>
Doing this now will save headache in the long run, avoiding mismatched
versions of installed utilities and dangling copies of removed or
renamed git commands that still appear to work. It also makes screwups
when packaging git or making system backups less likely.
BusyBox has been doing it this way for years.
Signed-off-by: Alp Toker <alp@atoker.com>
---
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 5b7bac8..cb5a5cc 100644
--- a/Makefile
+++ b/Makefile
@@ -538,7 +538,7 @@ git$X: git.c common-cmds.h $(BUILTIN_OBJ
builtin-help.o: common-cmds.h
$(BUILT_INS): git$X
- rm -f $@ && ln git$X $@
+ ln -sf git$X $@
common-cmds.h: Documentation/git-*.txt
./generate-cmdlist.sh > $@+
@@ -748,7 +748,7 @@ install: all
cp '$(DESTDIR_SQ)$(bindir_SQ)/git$X' \
'$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X'; \
fi
- $(foreach p,$(BUILT_INS), rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
+ $(foreach p,$(BUILT_INS), ln -sf 'git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
install-doc:
$(MAKE) -C Documentation install
--
1.4.1.g97c7-dirty
next prev parent reply other threads:[~2006-07-11 10:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 10:19 [PATCH] Typo fix Alp Toker
2006-07-11 10:19 ` [PATCH] gitweb: Send XHTML as 'application/xhtml+xml' where possible Alp Toker
2006-07-11 10:19 ` [PATCH] gitweb: Include a site name in page titles Alp Toker
2006-07-11 10:19 ` [PATCH] gitweb: Use the git binary in the search path by default Alp Toker
2006-07-11 10:19 ` [PATCH] git-send-email: Remove redundant Reply-To header Alp Toker
2006-07-11 10:19 ` Alp Toker [this message]
2006-07-11 11:15 ` [PATCH] Install built-ins as symlinks Andreas Ericsson
2006-07-11 14:16 ` Johannes Schindelin
2006-07-11 14:58 ` Alp Toker
2006-07-11 18:02 ` Johannes Schindelin
2006-07-11 18:48 ` Petr Baudis
2006-07-12 0:01 ` Alex Riesen
2006-07-11 18:36 ` Petr Baudis
2006-07-11 19:56 ` [PATCH] gitweb: Use the git binary in the search path by default Junio C Hamano
2006-07-11 11:48 ` [PATCH] gitweb: Include a site name in page titles Martin Langhoff
2006-07-11 19:48 ` Junio C Hamano
2006-07-11 22:37 ` [PATCH] Typo fix Pavel Roskin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11526131792377-git-send-email-alp@atoker.com \
--to=alp@atoker.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).