Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
さくらの共有レンタルサーバにSubversionをインストールするコマンドまとめスクリプト
#!/bin/sh
#=============================
# make work directory
#=============================
mkdir -p $HOME/local/svn/src
cd $HOME/local/svn/src
#=============================
# add svn path
#=============================
echo "export PATH=$HOME/local/svn/bin:$PATH" >> ~/.bashrc
#=============================
# install swig
#=============================
wget http://jaist.dl.sourceforge.net/sourceforge/swig/swig-1.3.40.tar.gz
tar xzvf swig-1.3.40.tar.gz
cd swig-1.3.40
./configure --prefix=$HOME/local/svn
make
make install
cd ../
rm -rf swig-1.3.40
#=============================
# install neon
#=============================
wget http://www.webdav.org/neon/neon-0.29.6.tar.gz
tar xzvf neon-0.29.6.tar.gz
cd neon-0.29.6
./configure --prefix=$HOME/local/svn --with-ssl --with-libs=/usr/local --enable-shared
make
make install
cd ../
rm -rf neon-0.29.6
#============================
# install subversion
#============================
wget http://www.meisei-u.ac.jp/mirror/apache/dist//apr/apr-1.4.5.tar.gz
tar xzvf apr-1.4.5.tar.gz
wget http://www.meisei-u.ac.jp/mirror/apache/dist//apr/apr-util-1.3.12.tar.gz
tar xzvf apr-util-1.3.12.tar.gz
wget http://subversion.tigris.org/downloads/subversion-1.6.16.tar.gz
tar xzvf subversion-1.6.16.tar.gz
mv apr-1.4.5 subversion-1.6.16/apr
mv apr-util-1.3.12 subversion-1.6.16/apr-util
cd subversion-1.6.16
./configure --prefix=$HOME/local/svn --without-berkeley-db --with-swig=$HOME/local/svn/bin/swig --with-neon=$HOME/local/svn --with-ssl --with-libs=$HOME/local/svn --disable-static
make
make install
cd ../
rm -rf subversion-1.6.16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment