• R/O
  • HTTP
  • SSH
  • HTTPS

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

File Info

Rev. 39b1c33521dd1e4ba75153182e9aff9434f5eb17
Tamanho 1,450 bytes
Hora 2015-04-02 05:37:54
Autor Takuo Yasunaga
Mensagem de Log

rebuid

Content

#!/bin/bash
#### 
EOS_HOME0=$HOME/Eos
echo "Set the directroy to be installed [$EOS_HOME0]: "; read ANS
if [ ! -z $ANS ] ; then 
	EOS_HOME0=$ANS;
else 
	EOS_HOME0=$HOME/Eos; 
fi
unset ANS
echo "Directory: $EOS_HOME0";

#### No Change
ROOT_EOS_SOURCEFORGE=https://sourceforge.jp/projects/eos/scm/git/base/blobs/master/
if [ ! -d $EOS_HOME0 ] ; then
	mkdir $EOS_HOME0
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 || echo "Already installed on $EOS_HOME0 or there are something wrong."

if [ -z $EOS_HOME0 ] ; then
	export EOS_HOME0=$HOME/Eos
fi
cat >> $HOME/.bashrc << EOF

##
## Eos_env
##

if [ ! -z $EOS_HOME0 ] ; then 
if [ -f $EOS_HOME0/env/Eos_env -a ! -f $HOME/.Eos_env ] ; then
	ln -s $EOS_HOME0/env/Eos_env $HOME/.Eos_env
fi
fi

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