OSDN Git Service

Ticket: #34969 v2.2.14p0124
author安永卓生 <tacyas@yasunagatakuo-no-MacBook-Air.local>
Sun, 8 Mar 2015 07:11:37 +0000 (16:11 +0900)
committer安永卓生 <tacyas@yasunagatakuo-no-MacBook-Air.local>
Sun, 8 Mar 2015 07:11:37 +0000 (16:11 +0900)
modified: ../env/install-eos.sh
for easy installation

env/install-eos.sh

index 21d0fd7..b2c2fe6 100755 (executable)
@@ -18,7 +18,7 @@ fi
 
 #curl -L $ROOT_EOS_SOURCEFORGE/env/Eos_env?export=raw | sh - ; 
 
-git clone --depth 1 git://git.sourceforge.jp/gitroot/eos/base.git $EOS_HOME0
+git clone --depth 1 git://git.sourceforge.jp/gitroot/eos/base.git $EOS_HOME0 || echo "Already installed on $EOS_HOME0 or there are something wrong."
 
 if [ -z $EOS_HOME0 ] ; then
        export EOS_HOME0=$HOME/Eos
@@ -40,10 +40,20 @@ test -r $HOME/.Eos_env  && . $HOME/.Eos_env
 EOF
 
 if [ ! -f $HOME/.Eos_env ] ; then
+       echo "No .Eos_env"
        ln -sf $EOS_HOME0/env/Eos_env $HOME/.Eos_env 
 fi
-source ~/.Eos_env
 
-if [ -d $EOS_HOME/hostdpend ] ; then
-       cd $EOS_HOME/hostdepend; git clone --depth 1 git://git.sourceforge.jp/gitroot/eos/hostdepend${EOS_HOSTDIR}.git ${EOS_HOSTDIR}
+source ~/.Eos_env || echo "Prepare environment"
+echo "hostdepend for ${EOS_HOSTDIR}"
+
+if [ ! -d $EOS_HOME0/hostdepend ] ; then
+       mkdir $EOS_HOME0/hostdepend     
+fi     
+
+if [ -d $EOS_HOME0/hostdepend ] ; then
+       cd $EOS_HOME0/hostdepend/;  
+       git clone --depth 1 git://git.sourceforge.jp/gitroot/eos/hostdepend${EOS_HOSTDIR}.git ${EOS_HOSTDIR} || echo "Already installed hostdepend/${EOS_HOSTDIR} or there are something wrong."; 
+else
+       echo "Cannot make hostdepend"
 fi