1 EOS_GIT_BACKUPSITE=/net/fs08/fs08/DataBase/EosBackup.git
2 EOS_GIT_REPOSITRY= git.sourceforge.jp:/gitroot/eos/base.git
3 EOS_GIT_REPOSITRY_OPTIONAL= git.sourceforge.jp:/gitroot/eos/optional.git
4 EOS_GIT_REPOSITRY_TUTORIAL= git.sourceforge.jp:/gitroot/eos/tutorial.git
5 EOS_GIT_REPOSITRY_DATA= git.sourceforge.jp:/gitroot/eos/data.git
6 EOS_GIT_REPOSITRY_DATA= git.sourceforge.jp:/gitroot/eos/others.git
12 @echo "---- To register new/Modified source codes. ----"
13 @echo " $$ make git-add or git-add[-all|-data|-tutorial|-optional|-others]"
14 @echo " $$ make git-commit or git-commit[-all|-data|-tutorial|-optional|-others]"
15 @echo " $$ make git-push or git-push[-all|-data|-tutorial|-optional|-others]"
17 @echo "---- To fetch and merge new/modified source codes. ----"
18 @echo " $$ make git-fetch or git-fetch[-all|-data|-tutorial|-optional|-others]"
19 @echo " $$ make git-merge or git-merge[-all|-data|-tutorial|-optional|-others]"
20 @echo " $$ make setting"
21 @echo "---- To init git repository ----"
22 @echo " $$ make git-init or git-init[-all|-data|-tutorial|-optional|-others]"
24 @echo "---- option ----"
25 @echo " [] : base only"
26 @echo " [-data] : data (for test)"
27 @echo " [-tutorial] : tutorial"
28 @echo " [-optional] : optional(for documents)"
29 @echo " [-others] : other source codes for utils"
33 @echo "----------------"
34 @echo "---- To set Eos ----"
35 @echo " $$ make setting"
36 @echo " $$ make rebuild"
39 @echo "----------------"
40 @echo "---- To rebuild source codes of Eos ----"
41 @echo " $$ make rebuild"
43 @echo "---- To relink Eos ----"
44 @echo " $$ make relink"
48 rebuild: rebuild-Objects rebuild-Tools
51 cd src/Objects; make check; make depend; make ; make install
54 cd src/Tools; make check; make depend; make ; make install
60 ln -sf optional/objects .
63 git-add-all:: git-add git-add-data git-add-optional git-add-tutorial git-add-others
69 cd optional; git add .
75 cd tutorial; git add .
80 git-commit-all:: git-commit git-commit-data git-commit-optional git-commit-tutorial git-commit-others
86 cd optional; git commit
92 cd tutorial; git commit
98 git push $(EOS_GIT_BACKUPSITE) master --tags
100 git-push-all:: git-push git-push-data git-push-optional git-push-tutorial git-push-others
103 git push origin master --tags
106 cd optional; git push optional master --tags
109 cd data; git push data master --tags
112 cd tutorial; git push tutorial master --tags
115 cd others; git push others master --tags
117 git-fetch-all:: git-fetch git-fetch-data git-fetch-optional git-fetch-tutorial git-fetch-others
120 cd . ; git fetch origin master ; git log -1
123 cd data ; git fetch data master ; git log -1
126 cd optional; git fetch optional master; git log -1
129 cd tutorial; git fetch tutorial master; git log -1
132 cd others ; git fetch others master ; git log -1
134 git-merge-all:: git-merge git-merge-data git-merge-optional git-merge-tutorial git-merge-others
137 cd . ; git log -1; git merge FETCH_HEAD
140 cd data ; git log -1; git merge FETCH_HEAD
143 cd optional; git log -1; git merge FETCH_HEAD
146 cd tutorial; git log -1; git merge FETCH_HEAD
149 cd others ; git log -1; git merge FETCH_HEAD
155 git-init-all:: git-init git-init-data git-init-optional git-init-tutorial
158 git remote add origin $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY)
161 if [ ! -d data ] ; then mkdir data; fi
162 cd data; git remote add data $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_DATA)
165 if [ ! -d optional ] ; then mkdir tutorial ; fi
166 if [ ! -L doc ] ; then ln -sf optional/doc . ; fi
167 if [ ! -L objects ] ; then ln -sf optional/objects . ; fi
168 cd optional; git remote add optional $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_OPTIONAL)
171 if [ ! -d tutorial ] ; then mkdir tutorial ; fi
172 cd tutorial; git remote add tutorial $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_TUTORIAL)
175 if [ ! -d others ] ; then mkdir others; fi
176 cd others ; git remote add others $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_OTHERS)