OSDN Git Service

Bug fixed:
authorTakuo Yasunaga <yasunaga@bio.kyutech.ac.jp>
Sat, 9 Aug 2014 22:51:53 +0000 (07:51 +0900)
committerTakuo Yasunaga <yasunaga@bio.kyutech.ac.jp>
Sat, 9 Aug 2014 22:51:53 +0000 (07:51 +0900)
modified:   Makefile
When GITUSER was not defined, we could not clone GITs.

Makefile

index 30c252c..e20f9b9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,14 @@
 EOS_GIT_BACKUPSITE=/net/fs08/fs08/DataBase/EosBackup.git
 EOS_GIT_REPOSITRY= git.sourceforge.jp:/gitroot/eos/base.git 
+EOS_GIT_REPOSITRY_NOUSER=git://git.sourceforge.jp/gitroot/eos/base.git
 EOS_GIT_REPOSITRY_OPTIONAL= git.sourceforge.jp:/gitroot/eos/optional.git 
+EOS_GIT_REPOSITRY_OPTIONAL_NOUSER=git://git.sourceforge.jp/gitroot/eos/optional.git
 EOS_GIT_REPOSITRY_TUTORIAL= git.sourceforge.jp:/gitroot/eos/tutorial.git 
+EOS_GIT_REPOSITRY_TUTORILA_NOUSER=git://git.sourceforge.jp/gitroot/eos/tutorial.git
 EOS_GIT_REPOSITRY_DATA= git.sourceforge.jp:/gitroot/eos/data.git 
+EOS_GIT_REPOSITRY_DATA_NOUSER=git://git.sourceforge.jp/gitroot/eos/data.git
 EOS_GIT_REPOSITRY_OTHERS= git.sourceforge.jp:/gitroot/eos/others.git 
+EOS_GIT_REPOSITRY_OTHRES_NOUSER=git://git.sourceforge.jp/gitroot/eos/others.git
 
 
 help::
@@ -206,40 +211,60 @@ git-init-others::
        if [ ! -d others ] ; then mkdir others; fi
        cd others ; git remote rm others; git remote add others $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS)
 
+git-init-others2::
+       if [ ! -d others2 ] ; then mkdir others2; fi
+       cd others2 ; git remote add others2 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS)
 
 git-clone-all:: git-clone git-clone-data git-clone-optional git-clone-tutorial git-clone-others
 
 git-clone:git-init
        if [ ! -d  .git ] ; \
        then \
-               git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY) ./ ; \
+               if [ -z $${EOS_GITUSER} ] ; then \
+                       git clone --depth 1 $(EOS_GIT_REPOSITRY_NOUSER) ./ ; \
+               else \
+                       git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY) ./ ; \
+               fi ; \
        fi
 
 git-clone-data: git-init-data
        cd data;  if [ ! -d .git ] ; \
        then \
-               git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA) ./; \
+               if [ -z $${EOS_GITUSER} ] ; then \
+                       git clone --depth 1 $(EOS_GIT_REPOSITRY_DATA_NOUSER) ./ ; \
+               else \
+                       git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA) ./; \
+               fi ; \
        fi
 
 git-clone-optional: git-init-optional 
        cd optional; if [ ! -d .git ] ; \
        then \
-               git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL) ./ ; \
+               if [ -z $${EOS_GITUSER} ] ; then \
+                       git clone --depth 1 $(EOS_GIT_REPOSITRY_OPTIONAL_NOUSER) ./ ; \
+               else \
+                       git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL) ./ ; \
+               fi ; \
        fi
 
 git-clone-tutorial: git-init-tutorial
        cd tutorial; if [ ! -d .git ] ; \
        then \
-               git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL) ./ ; \
+               if [ -z $${EOS_GITUSER} ] ; then \
+                       git clone --depth 1 $(EOS_GIT_REPOSITRY_TUTORIAL_NOUSER) ./ ; \
+               else \
+                       git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL) ./ ; \
+               fi; \
        fi
 
 git-clone-others: git-init-others
        cd others ; if [ ! -d .git ] ; \
        then \
-               git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS) ./ ; \
+               if [ -z $${EOS_GITUSER} ] ; then \
+                       git clone --depth 1 $(EOS_GIT_REPOSITRY_OTHERS_NOUSER) ./ ; \
+               else \
+                       git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS) ./ ; \
+               fi; \
        fi
 
-git-init-others2::
-       if [ ! -d others2 ] ; then mkdir others2; fi
-       cd others2 ; git remote add others2 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS)