Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 62 lines (41 sloc) 1.161 kb
2967c23 git install用シェルスクリプト追加
yukio authored
1 #!/bin/bash
2 #
3 # This script run as root
4 # -----------------------------------------------------------
64f0636 @byplayer update git version .
authored
5 # install packages
2967c23 git install用シェルスクリプト追加
yukio authored
6 # -----------------------------------------------------------
5d5b5a3 @byplayer fix curl lib
authored
7 aptitude install gettext tcl tk libsvn-perl asciidoc libcurl4-dev libcurl4-openssl-dev curl\
d8df6d2 @yukio-goto add compression libs
yukio-goto authored
8 libexpat-dev zlib1g-dev libbz2-dev
2967c23 git install用シェルスクリプト追加
yukio authored
9 #
b208845 @byplayer update git version
authored
10 GIT_VER=1.7.9.2
2967c23 git install用シェルスクリプト追加
yukio authored
11
12 cd /usr/local/src
13
14
7b7386a @yukio-goto update git version
yukio-goto authored
15 if [ ! -f git-${GIT_VER}.tar.gz ];
2967c23 git install用シェルスクリプト追加
yukio authored
16 then
7b7386a @yukio-goto update git version
yukio-goto authored
17 wget http://git-core.googlecode.com/files/git-${GIT_VER}.tar.gz
2967c23 git install用シェルスクリプト追加
yukio authored
18 fi
19
20
21
7b7386a @yukio-goto update git version
yukio-goto authored
22 tar xzf git-${GIT_VER}.tar.gz
2967c23 git install用シェルスクリプト追加
yukio authored
23
24 cd git-${GIT_VER}
25
26
27
28 ./configure --with-openssl --with-curl --with-expat --with-perl --prefix=/usr/local/git-${GIT_VER}
29
30
64f0636 @byplayer update git version .
authored
31 # If you use old debian
2967c23 git install用シェルスクリプト追加
yukio authored
32 # vi http.h
33
64f0636 @byplayer update git version .
authored
34 # comment out follow line
2967c23 git install用シェルスクリプト追加
yukio authored
35
36 # -----------------------------------------------------------
37 #if LIBCURL_VERSION_NUM >= 0x071000
932b180 @byplayer update install git version
authored
38 # ...
2967c23 git install用シェルスクリプト追加
yukio authored
39 #endif
40 # -----------------------------------------------------------
41
42 make
43 make install
44
45
46 pushd /usr/local
215389d シンボリックリンクを削除出きるよう修正
yukio authored
47 if [ -L git ];
2967c23 git install用シェルスクリプト追加
yukio authored
48 then
49 rm git
50 fi
51 ln -s git-${GIT_VER} git
52 popd
53
7b7386a @yukio-goto update git version
yukio-goto authored
54 make man
55 make install-man
56
64f0636 @byplayer update git version .
authored
57 # If you want to use git svn, you need to install perl svn .
2967c23 git install用シェルスクリプト追加
yukio authored
58
64f0636 @byplayer update git version .
authored
59 # setup environment .
2967c23 git install用シェルスクリプト追加
yukio authored
60 # export PATH=/usr/local/git/bin:$PATH
61 # export MANPATH=/usr/local/git/share/man:`manpath -q`
Something went wrong with that request. Please try again.