6 if [ -z $EOS_HOME0 ] ; then
10 echo "Set the directroy to be installed [$EOS_HOME0]: "; read ANS
11 if [ ! -z $ANS ] ; then
17 echo "Directory: $EOS_HOME0";
20 #ROOT_EOS_SOURCEFORGE=https://sourceforge.jp/projects/eos/scm/git/base/blobs/master/
21 ROOT_EOS_OSDN_GIT=git://git.osdn.jp/gitroot/eos/base.git
22 ROOT_EOS_OSDN_HTTP=http://scm.osdn.jp/gitroot/eos/base.git
23 ROOT_EOS_OSDN_SSH=${EOS_GITUSER}@git.osdn.jp:/gitroot/eos/base.git
24 ROOT_EOS_OSDN_HTTPS=https://scm.osdn.jp/gitroot/eos/base.git
26 if [ ! -d $EOS_HOME0 ] ; then
30 #curl -L $ROOT_EOS_SOURCEFORGE/env/Eos_env?export=raw | sh - ;
32 if [ -d $EOS_HOME0/.git ] ; then
33 echo "Already installed"
34 echo "Use update-eos.sh for updating or set a new directory for installation"
36 if [ -z $EOS_GITUSER ] ; then
39 git clone --depth 1 $ROOT_EOS_OSDN_SSH $EOS_HOME0 || \
40 git clone --depth 1 $ROOT_EOS_OSDN_HTTPS $EOS_HOME0 || \
41 echo "A port for SSH or HTTPS is not open, or something wrong for $EOS_GITUSER."
44 if [ -z $INSTALL_FLAG ] ; then
45 git clone --depth 1 $ROOT_EOS_OSDN_GIT $EOS_HOME0 || \
46 git clone --depth 1 $ROOT_EOS_OSDN_HTTP $EOS_HOME0 || \
47 echo "A port for git (9418) or HTTP is not open, or something wrong."
52 if [ -z $EOS_HOME0 ] ; then
53 export EOS_HOME0=$HOME/Eos
55 cat >> $HOME/.bashrc << EOF
61 if [ ! -z $EOS_HOME0 ] ; then
62 if [ -f $EOS_HOME0/env/Eos_env -a ! -f $HOME/.Eos_env ] ; then
63 ln -s $EOS_HOME0/env/Eos_env $HOME/.Eos_env
67 test -r $HOME/.Eos_env && . $HOME/.Eos_env
75 if [ ! -f $HOME/.Eos_env ] ; then
77 ln -sf $EOS_HOME0/env/Eos_env $HOME/.Eos_env
80 source ~/.Eos_env || echo "Prepare environment"
81 echo "hostdepend for ${EOS_HOSTDIR}"
83 HOSTDEPEND_EOS_OSDN_GIT=git://git.osdn.jp/gitroot/eos/hostdepend${EOS_HOSTDIR}.git
84 HOSTDEPEND_EOS_OSDN_HTTP=http://scm.osdn.jp/gitroot/eos/hostdepend${EOS_HOSTDIR}.git
85 HOSTDEPEND_EOS_OSDN_SSH=${EOS_GITUSER}@git.osdn.jp:/gitroot/eos/hostdepend${EOS_HOSTDIR}.git
86 HOSTDEPEND_EOS_OSDN_HTTPS=https://scm.osdn.jp/gitroot/eos/hostdepend${EOS_HOSTDIR}.git
88 if [ ! -d $EOS_HOME0/hostdepend ] ; then
89 mkdir $EOS_HOME0/hostdepend
92 if [ -d $EOS_HOME0/hostdepend ] ; then
93 cd $EOS_HOME0/hostdepend/;
94 if [ -d ${EOS_HOSTDIR}/.git ] ; then
95 echo "Already installed hostdepend/${EOS_HOSTDIR}";
96 echo "Use update-eos.sh for updating or set a new directory for installation"
98 if [ -z $EOS_GITUSER ] ; then
101 git clone --depth 1 ${HOSTDEPEND_EOS_OSDN_SSH} ${EOS_HOSTDIR} || \
102 git clone --depth 1 ${HOSTDEPEND_EOS_OSDN_HTTPS} ${EOS_HOSTDIR} || \
103 echo "A port for SSH or HTTPS is not open, or something wrong."
106 if [ -z $INSTALL_FLAG ] ; then
107 git clone --depth 1 ${HOSTDEPEND_EOS_OSDN_GIT} ${EOS_HOSTDIR} || \
108 git clone --depth 1 ${HOSTDEPEND_EOS_OSDN_HTTP} ${EOS_HOSTDIR} || \
109 echo "A port for git (9418) or HTTP is not open, or something wrong."
113 echo "Cannot make hostdepend"