-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildInstructions.txt
43 lines (31 loc) · 1.52 KB
/
BuildInstructions.txt
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
# NOTE: This process can be automated by the build.sh script. Check it over to make sure everything
# is correct for your machine, then:
# ./build.sh
# If you'd rather do things manually, follow these instructions:
# Check the UserScripts/cplibs.sh file and make sure the FROM_DIR is correct for your system.
# /opt/local/lib should be fine if you're using MacPorts, which provides these libraries.
# Then,
sudo UserScripts/cplibs.sh
curl -O http://kernel.org/pub/software/scm/git/git-1.5.6.5.tar.bz2
tar jxvf git-1.5.6.5.tar.bz2
cd git-1.5.6.5
# If you're on PPC, you may need to edit your Makefile and add:
MOZILLA_SHA1=1
# Tell make to use /usr/local/git/lib rather than MacPorts:
echo "NO_DARWIN_PORTS=1" > Makefile_tmp
cat Makefile >> Makefile_tmp
mv Makefile_tmp Makefile
make LDFLAGS="-L/usr/local/git/lib,/usr/lib" prefix=/usr/local/git all
make LDFLAGS="-L/usr/local/git/lib,/usr/lib" prefix=/usr/local/git strip
sudo make LDFLAGS="-L/usr/local/git/lib,/usr/lib" prefix=/usr/local/git install
# contrib
sudo mkdir -p /usr/local/git/contrib/completion
sudo cp contrib/completion/git-completion.bash /usr/local/git/contrib/completion/
# change hardlinks for symlinks
cd ..
sudo ruby UserScripts/symlink_git_hardlinks.rb
curl -O http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.6.5.tar.bz2
sudo mkdir -p /usr/local/git/man
sudo tar xjv -C /usr/local/git/man -f git-manpages-1.5.6.5.tar.bz2
# add .DS_Store to default ignore for new repositories
sudo sh -c "echo .DS_Store >> /usr/local/git/share/git-core/templates/info/exclude"