#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
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