1#!/bin/sh
2d="$1"
3test -d "$d" || exit
4while read old new
5do
6 rm -f "$d/$old"
7 if [ -x "$d/$new" ]; then
8 ln -s "$new" "$d/$old"
9 fi
10done <<\EOF
11git-add-script git-add
12git-archimport-script git-archimport
13git-bisect-script git-bisect
14git-branch-script git-branch
15git-checkout-script git-checkout
16git-cherry-pick-script git-cherry-pick
17git-clone-script git-clone
18git-commit-script git-commit
19git-count-objects-script git-count-objects
20git-cvsimport-script git-cvsimport
21git-diff-script git-diff
22git-send-email-script git-send-email
23git-fetch-script git-fetch
24git-format-patch-script git-format-patch
25git-log-script git-log
26git-ls-remote-script git-ls-remote
27git-merge-one-file-script git-merge-one-file
28git-octopus-script git-octopus
29git-parse-remote-script git-parse-remote
30git-prune-script git-prune
31git-pull-script git-pull
32git-push-script git-push
33git-rebase-script git-rebase
34git-relink-script git-relink
35git-rename-script git-rename
36git-repack-script git-repack
37git-request-pull-script git-request-pull
38git-reset-script git-reset
39git-resolve-script git-resolve
40git-revert-script git-revert
41git-sh-setup-script git-sh-setup
42git-status-script git-status
43git-tag-script git-tag
44git-verify-tag-script git-verify-tag
45git-http-pull git-http-fetch
46git-local-pull git-local-fetch
47git-checkout-cache git-checkout-index
48git-diff-cache git-diff-index
49git-merge-cache git-merge-index
50git-update-cache git-update-index
51git-convert-cache git-convert-objects
52git-fsck-cache git-fsck-objects
53EOF
54
55# These two are a bit more than symlinks now.
56# git-ssh-push git-ssh-upload
57# git-ssh-pull git-ssh-fetch