blob: ff192502de34d75e0cff75bf37db3e16bce7f704 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
From: Koen Kooi <k-kooi@ti.com>
Subject: Git: don't use hardlink, try softlinks and fall back to plain 'cp'
Using hardlinks confuses packaging an ends up giving us a *copy* of the git binary,
making the resulting package 54MB big. This brings it down a more managable 4.4M.
This patch isn't complete though:
12cb2bfcde40ce7084ae44af7db88f29 git-cvsserver
2404a2cd2838be3841eac93de40a644e git
2404a2cd2838be3841eac93de40a644e git-receive-pack
2404a2cd2838be3841eac93de40a644e git-upload-archive
61631194968f67e12abd1f80103a2c68 git-upload-pack
7b8faebe64076d65934a05cd60bbeb29 git-shell
---
Index: git-1.7.3.5/Makefile
===================================================================
--- git-1.7.3.5.orig/Makefile
+++ git-1.7.3.5/Makefile
@@ -1619,7 +1619,6 @@ builtin/help.s builtin/help.o: EXTRA_CPP
$(BUILT_INS): git$X
$(QUIET_BUILT_IN)$(RM) $@ && \
- ln git$X $@ 2>/dev/null || \
ln -s git$X $@ 2>/dev/null || \
cp git$X $@
@@ -1936,7 +1935,6 @@ git-http-push$X: revision.o http.o http-
$(REMOTE_CURL_ALIASES): $(REMOTE_CURL_PRIMARY)
$(QUIET_LNCP)$(RM) $@ && \
- ln $< $@ 2>/dev/null || \
ln -s $< $@ 2>/dev/null || \
cp $< $@
@@ -2134,20 +2132,17 @@ endif
} && \
for p in $(filter $(install_bindir_programs),$(BUILT_INS)); do \
$(RM) "$$bindir/$$p" && \
- ln "$$bindir/git$X" "$$bindir/$$p" 2>/dev/null || \
ln -s "git$X" "$$bindir/$$p" 2>/dev/null || \
cp "$$bindir/git$X" "$$bindir/$$p" || exit; \
done && \
for p in $(BUILT_INS); do \
$(RM) "$$execdir/$$p" && \
- ln "$$execdir/git$X" "$$execdir/$$p" 2>/dev/null || \
ln -s "git$X" "$$execdir/$$p" 2>/dev/null || \
cp "$$execdir/git$X" "$$execdir/$$p" || exit; \
done && \
remote_curl_aliases="$(REMOTE_CURL_ALIASES)" && \
for p in $$remote_curl_aliases; do \
$(RM) "$$execdir/$$p" && \
- ln "$$execdir/git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
ln -s "git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
cp "$$execdir/git-remote-http$X" "$$execdir/$$p" || exit; \
done && \
|