3 EOS_GIT_BACKUPSITE=/net/fs08/fs08/DataBase/EosBackup.git
4 EOS_GIT_REPOSITRY= git.sourceforge.jp:/gitroot/eos/base.git
5 EOS_GIT_REPOSITRY_NOUSER=git://git.sourceforge.jp/gitroot/eos/base.git
6 EOS_GIT_REPOSITRY_OPTIONAL= git.sourceforge.jp:/gitroot/eos/optional.git
7 EOS_GIT_REPOSITRY_OPTIONAL_NOUSER=git://git.sourceforge.jp/gitroot/eos/optional.git
8 EOS_GIT_REPOSITRY_TUTORIAL= git.sourceforge.jp:/gitroot/eos/tutorial.git
9 EOS_GIT_REPOSITRY_TUTORIAL_NOUSER=git://git.sourceforge.jp/gitroot/eos/tutorial.git
10 EOS_GIT_REPOSITRY_DATA= git.sourceforge.jp:/gitroot/eos/data.git
11 EOS_GIT_REPOSITRY_DATA_NOUSER=git://git.sourceforge.jp/gitroot/eos/data.git
12 EOS_GIT_REPOSITRY_OTHERS= git.sourceforge.jp:/gitroot/eos/others.git
13 EOS_GIT_REPOSITRY_OTHERS_NOUSER=git://git.sourceforge.jp/gitroot/eos/others.git
16 EOS_GIT_REPOSITRY_HOSTDEPEND=git.sourceforge.jp:/gitroot/eos/hostdepend
17 EOS_GIT_REPOSITRY_HOSTDEPEND_NOUSER=git://git.sourceforge.jp/gitroot/eos/hostdepend
19 EOS_GIT_REPOSITRY_ZEPHYR= git.sourceforge.jp:/gitroot/eos/zephyr.git
20 EOS_GIT_REPOSITRY_ZEPHYR_NOUSER=git://git.sourceforge.jp/gitroot/eos/zephyr.git
22 EOS_GIT_REPOSITRY_PIONE=https://github.com/pione/pione.git
23 EOS_GIT_REPOSITRY_PIONE_NOUSER=https://github.com/pione/pione.git
28 @echo "---- To register new/Modified source codes. ----"
29 @echo " $$ make git-add or git-add[-all|-data|-tutorial|-optional|-others|-others2]"
30 @echo " $$ make git-commit or git-commit[-all|-data|-tutorial|-optional|-others|-others2]"
31 @echo " $$ make git-tag or git-tag[-all|-data|-tutorial|-optional|-others|-others2]"
32 @echo " $$ make git-push or git-push[-all|-data|-tutorial|-optional|-others]"
34 @echo "---- To fetch and merge new/modified source codes. ----"
35 @echo " $$ make git-fetch or git-fetch[-all|-data|-tutorial|-optional|-others]"
36 @echo " $$ make git-merge or git-merge[-all|-data|-tutorial|-optional|-others]"
37 @echo " $$ make setting"
38 @echo "---- To init git repository ----"
39 @echo " $$ make git-init or git-init[-all|-zephyr|-data|-tutorial|-optional|-others]"
40 @echo "---- To clonse git repository ----"
41 @echo " $$ make git-clone or git-clone[-all|-zephyr|-data|-tutorial|-optional|-others]"
42 @echo "---- option ----"
43 @echo " [] : base only"
44 @echo " [-zephyr] : zephyr (for GUI/browser)"
45 @echo " [-pione] : pione (for process control with GUI/browser)"
46 @echo " [-data] : data (for test)"
47 @echo " [-tutorial] : tutorial"
48 @echo " [-optional] : optional(for documents)"
49 @echo " [-others] : other source codes for utils"
50 @echo " [-others2] : other source codes for utils"
54 @echo "---- To set Eos ----"
55 @echo " $$ make setting ; # Create links."
56 @echo " $$ make install ; # No clean, just install."
57 @echo " $$ make rebuild ; # Clean and install."
58 @echo " $$ make rebuild-all ; # Update(prototype), clean and install."
61 @echo "---- To rebuild source codes of Eos ----"
62 @echo " $$ make rebuild"
63 @echo "---- To update prototype source codes and rebuild source codes of Eos ----"
64 @echo " $$ make rebuild-all"
65 @echo "---- To set Eos ----"
66 @echo " $$ make setting"
68 @echo ">>>> Setting for Eos utils using other softwares "
69 @echo "---- To set Eos ----"
70 @echo " $$ cd util; make setting"
71 @echo " $$ cd util; make rebuild"
75 rebuild-all: rebuild-src rebuild-Objects rebuild-all-Tools
76 rebuild: rebuild-src rebuild-Objects rebuild-Tools
84 cd src; rm -f Makefile; cp -f Config/Template/Makefile Makefile
85 cd src; rm -f Objects/Makefile; cp -f Config/Template/ObjectsHomeTemplate.Dir/Makefile Objects/Makefile; rm -f Objects/Config/Target.inc; cp -f Config/Template/ObjectsHomeTemplate.Dir/Config/Target.inc Objects/Config/Target.inc
86 cd src; rm -f Tools/Makefile; cp -f Config/Template/ToolsHomeTemplate.Dir/Makefile Tools/Makefile; rm -f Tools/Config/Target.inc ; cp -f Config/Template/ToolsHomeTemplate.Dir/Config/Target.inc Tools/Config/Target.inc
89 cd src/Objects; make clean; make check; make depend; make ; make install
92 cd src/Tools; make clean; make check; make depend; make ; make install
95 cd src/Tools; make clean; make update; make check; make depend; make ; make install
99 cd src; rm -f Objects/Makefile; cp -f Config/Template/ObjectsHomeTemplate.Dir/Makefile Objects/Makefile
100 cd src; rm -f Tools/Makefile; cp -f Config/Template/ToolsHomeTemplate.Dir/Makefile Tools/Makefile
103 @echo "install-Objects"
104 cd src/Objects; make check; make depend; make ; make install
107 @echo "install-Tools"
108 cd src/Tools; make check; make depend; make ; make install
111 if [ ! -d hostdepend] ; then \
116 ln -sf optional/doc .
117 ln -sf optional/objects .
118 ln -sf data/example .
124 git-add-all:: git-add git-add-data git-add-optional git-add-tutorial git-add-others
126 git-add:: git-add-hostdepend
127 @echo "base directory"
128 @git add -v --all . || echo "No files to be added"
131 @echo "hostdepend directory"
132 @cd hostdepend/$${EOS_HOSTDIR}/ ; git remote add hostdepend$${EOS_HOSTDIR} $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_HOSTDEPEND)$${EOS_HOSTDIR}.git || echo "Already exist"
133 @cd hostdepend/$${EOS_HOSTDIR}/ ; git add -v --all . || echo "No files to be added\n"
136 cd optional; git add -v --all .
139 cd data; git add -v --all .
142 cd tutorial; git add -v --all .
145 cd others; git add -v --all .
148 cd others2; git add --all .
154 git-commit-all:: git-commit git-commit-data git-commit-optional git-commit-tutorial git-commit-others
156 git-commit:: git-commit-hostdepend
157 @git commit || echo "Already commited"
159 git-commit-hostdepend::
160 @cd hostdepend/$${EOS_HOSTDIR}/ ; git commit || echo "Already commited"
162 git-commit-optional::
163 cd optional; git commit
168 git-commit-tutorial::
169 cd tutorial; git commit
172 cd others; git commit
175 cd others2; git commit
178 git push $(EOS_GIT_BACKUPSITE) master --tags
185 @export DIRECTORYNAME=./; \
189 @export DIRECTORYNAME=optional; \
193 @export DIRECTORYNAME=data; \
197 @export DIRECTORYNAME=tutorial; \
201 @export DIRECTORYNAME=others; \
205 @if [ ! -z "$$DIRECTORYNAME" ]; then \
206 cd $$DIRECTORYNAME; \
208 git tag | sort -k 2,2 -n -t p ; \
209 echo -n "Version No. (e.g. vXX.YY.ZZpSSSS) : "; \
211 if [ ! -z "$$TTT" ]; then \
222 git-push-all:: git-push git-push-data git-push-optional git-push-tutorial git-push-others
224 git-push::git-push-hostdepend
225 # git push origin master --tags
227 @export DIRECTORYNAME=./; \
228 export ORIGINNAME=origin; \
229 make git-push-with-check;
231 git-push-hostdepend::
232 #git subtree push --prefix=hostdepend/$${EOS_HOSTDIR}/ --squash hostdepend$${EOS_HOSTDIR} master
234 @cd hostdepend/$${EOS_HOSTDIR}/; git push hostdepend$${EOS_HOSTDIR} master
237 # cd optional; git push optional master --tags
238 @export DIRECTORYNAME=optional; \
239 export ORIGINNAME=optional; \
240 make git-push-with-check;
243 # cd data; git push data master --tags
244 @export DIRECTORYNAME=data; \
245 export ORIGINNAME=data; \
246 make git-push-with-check;
249 # cd tutorial; git push tutorial master --tags
250 @export DIRECTORYNAME=tutorial; \
251 export ORIGINNAME=tutorial; \
252 make git-push-with-check;
255 # cd others; git push others master --tags
256 @export DIRECTORYNAME=others; \
257 export ORIGINNAME=others; \
258 make git-push-with-check;
260 git-push-with-check::
261 @if [ ! -z "$$DIRECTORYNAME" -a ! -z "$$ORIGINNAME" ]; then \
262 cd $$DIRECTORYNAME; \
264 SSS=`git tag | sort -k 2,2 -n -t p | tail -1`; \
265 if [ ! -z "$$SSS" ]; then \
266 echo "$$SSS is Current Tags in $$ORIGINNAME."; \
267 echo -n "Was the current tag updated? [ Y|y | N|n ]: "; \
269 if [ "$$TTT" = Y -o "$$TTT" = y ]; then \
270 git push $$ORIGINNAME master --tags; \
275 echo "Tags do not exist in $$ORIGINNAME."; \
276 echo "Before push please add tag at current repositry."; \
283 git-fetch-all:: git-fetch fit-fetch-zephyr git-fetch-data git-fetch-optional git-fetch-tutorial git-fetch-others
285 git-fetch::git-pull-hostdepend
286 @echo "fetch: base directory"
287 @cd . ; git fetch origin master --tags ; git log -1 || echo "No files to be fetched"
289 git-pull-hostdepend::
290 @#git subtree pull --prefix=hostdepend/$${EOS_HOSTDIR}/ --squash hostdepend$${EOS_HOSTDIR} master
291 @echo "pull: hostdepend directory"
292 @cd hostdepend/$${EOS_HOSTDIR}/; git pull --unshallow hostdepend$${EOS_HOSTDIR} master || echo "No files to be fetched"
295 cd zephyr; git fetch zephyr master --tags ; git log -1
298 cd data ; git fetch data master --tags ; git log -1
301 cd optional; git fetch optional master --tags ; git log -1
304 cd tutorial; git fetch tutorial master --tags ; git log -1
307 cd others ; git fetch others master --tags ; git log -1
312 git-merge-all:: git-merge git-merge-zephyr git-merge-data git-merge-optional git-merge-tutorial git-merge-others
315 cd . ; git log -1; git merge FETCH_HEAD
318 cd zephyr ; git log -1; git merge FETCH_HEAD
321 cd data ; git log -1; git merge FETCH_HEAD
324 cd optional; git log -1; git merge FETCH_HEAD
327 cd tutorial; git log -1; git merge FETCH_HEAD
330 cd others ; git log -1; git merge FETCH_HEAD
337 git-init-all:: git-init git-init-zephyr git-init-data git-init-optional git-init-tutorial git-init-others
339 git-init:: git-add-hostdepend
340 if [ ! -d .git ] ; then git init ; fi
341 @export ORIGINNAME=origin; \
345 if [ ! -d data ] ; then mkdir data; fi
347 if [ ! -d .git ] ; then git init ; fi ;
348 @export ORIGINNAME=data; \
349 make git-remote-add-data;
352 if [ ! -d zephyr ] ; then mkdir zephyr ; fi
354 if [ ! -d .git ] ; then git init ; fi ;
355 @export ORIGINNAME=zephyr; \
356 make git-remote-add-zephyr;
359 if [ ! -d pione ] ; then mkdir pione; fi
361 if [ ! -d .git ] ; then git init ; fi ;
362 @export ORIGINNAME=pione; \
363 make git-remote-add-pione;
366 if [ ! -d optional ] ; then mkdir optional; fi
367 if [ ! -L doc ] ; then ln -sf optional/doc . ; fi
368 if [ ! -L objects ] ; then ln -sf optional/objects . ; fi
370 if [ ! -d .git ] ; then git init ; fi ;
371 @export ORIGINNAME=optional; \
372 make git-remote-add-optional;
375 if [ ! -d tutorial ] ; then mkdir tutorial ; fi
377 if [ ! -d .git ] ; then git init ; fi ;
378 @export ORIGINNAME=tutorial; \
379 make git-remote-add-tutorial;
382 if [ ! -d others ] ; then mkdir others; fi
384 if [ ! -d .git ] ; then git init ; fi ;
385 @export ORIGINNAME=others; \
386 make git-remote-add-others;
389 if [ ! -d others2 ] ; then mkdir others2; fi
390 cd others2 ; git remote add others2 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS)
394 git-clone-all:: git-clone
395 @if [ ! -z "$${EOS_HOME}" -a -d "$${EOS_HOME}" ] ; then \
397 make git-clone-data git-clone-optional git-clone-tutorial git-clone-others; \
401 @if [ ! -z "$${EOS_HOME}" -a -d "$${EOS_HOME}" ] ; then \
402 TMPDIRECTORY=$$(pwd) ; \
406 if [ -z $${EOS_GITUSER} ] ; then \
407 git clone --depth 1 $(EOS_GIT_REPOSITRY_NOUSER) ./ ; \
409 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY) ./ ; \
411 cd $${TMPDIRECTORY}; \
412 export ORIGINNAME=origin; \
413 make git-remote-add; \
418 if [ ! -d zephyr] ; then mkdir zephyr; fi
419 @cd zephyr; if [ ! -d .git ] ; \
421 if [ -z $${EOS_GITUSER} ] ; then \
422 git clone --depth 1 $(EOS_GIT_REPOSITRY_ZEPHYR_NOUSER) ./ ; \
424 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_ZEPHYR) ./; \
427 export ORIGINNAME=zephyr; \
428 make git-remote-add-zephyr; \
432 if [ ! -d data ] ; then mkdir data; fi
433 @cd data; if [ ! -d .git ] ; \
435 if [ -z $${EOS_GITUSER} ] ; then \
436 git clone --depth 1 $(EOS_GIT_REPOSITRY_DATA_NOUSER) ./ ; \
438 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA) ./; \
441 export ORIGINNAME=data; \
442 make git-remote-add-data; \
446 if [ ! -d optional ] ; then mkdir optional; fi
447 if [ ! -L doc ] ; then ln -sf optional/doc . ; fi
448 if [ ! -L objects ] ; then ln -sf optional/objects . ; fi
449 @cd optional; if [ ! -d .git ] ; \
451 if [ -z $${EOS_GITUSER} ] ; then \
452 git clone --depth 1 $(EOS_GIT_REPOSITRY_OPTIONAL_NOUSER) ./ ; \
454 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL) ./ ; \
457 export ORIGINNAME=optional; \
458 make git-remote-add-optional; \
462 if [ ! -d tutorial ] ; then mkdir tutorial ; fi
463 @cd tutorial; if [ ! -d .git ] ; \
465 if [ -z $${EOS_GITUSER} ] ; then \
466 git clone --depth 1 $(EOS_GIT_REPOSITRY_TUTORIAL_NOUSER) ./ ; \
468 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL) ./ ; \
471 export ORIGINNAME=tutorial; \
472 make git-remote-add-tutorial; \
476 if [ ! -d others ] ; then mkdir others; fi
477 @cd others ; if [ ! -d .git ] ; \
479 if [ -z $${EOS_GITUSER} ] ; then \
480 git clone --depth 1 $(EOS_GIT_REPOSITRY_OTHERS_NOUSER) ./ ; \
482 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS) ./ ; \
485 export ORIGINNAME=others; \
486 make git-remote-add-others; \
492 @if [ ! -z "$$ORIGINNAME" -a ! -z "$${EOS_HOME}" -a -d "$${EOS_HOME}" ]; then \
494 SSS=`git remote -v | awk '{print $$1}' | grep origin`; if [ ! -z "$$SSS" ] ; then git remote rm origin ; fi ; \
495 if [ -z $${EOS_GITUSER} ] ; then \
496 git remote add origin $(EOS_GIT_REPOSITRY_NOUSER); \
498 git remote add origin $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY); \
502 git-remote-add-zephyr::
503 @if [ ! -z "$$ORIGINNAME" ]; then \
505 SSS=`git remote -v | awk '{print $$1}' | grep data`; if [ ! -z "$$SSS" ] ; then git remote rm zephyr; fi ; \
506 if [ -z $${EOS_GITUSER} ] ; then \
507 git remote add zephyr $(EOS_GIT_REPOSITRY_ZEPHYR_NOUSER); \
509 git remote add zephyr $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_ZEPHYR); \
513 git-remote-add-data::
514 @if [ ! -z "$$ORIGINNAME" ]; then \
516 SSS=`git remote -v | awk '{print $$1}' | grep data`; if [ ! -z "$$SSS" ] ; then git remote rm data ; fi ; \
517 if [ -z $${EOS_GITUSER} ] ; then \
518 git remote add data $(EOS_GIT_REPOSITRY_DATA_NOUSER); \
520 git remote add data $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA); \
524 git-remote-add-optional::
525 @if [ ! -z "$$ORIGINNAME" ]; then \
527 SSS=`git remote -v | awk '{print $$1}' | grep optional`; if [ ! -z "$$SSS" ] ; then git remote rm optional ; fi ; \
528 if [ -z $${EOS_GITUSER} ] ; then \
529 git remote add optional $(EOS_GIT_REPOSITRY_OPTIONAL_NOUSER); \
531 git remote add optional $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL); \
535 git-remote-add-tutorial::
536 @if [ ! -z "$$ORIGINNAME" ]; then \
538 SSS=`git remote -v | awk '{print $$1}' | grep tutorial`; if [ ! -z "$$SSS" ] ; then git remote rm tutorial ; fi ; \
539 if [ -z $${EOS_GITUSER} ] ; then \
540 git remote add tutorial $(EOS_GIT_REPOSITRY_TUTORIAL_NOUSER); \
542 git remote add tutorial $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL); \
546 git-remote-add-others::
547 @if [ ! -z "$$ORIGINNAME" ]; then \
549 SSS=`git remote -v | awk '{print $$1}' | grep others`; if [ ! -z "$$SSS" ] ; then git remote rm others ; fi ; \
550 if [ -z $${EOS_GITUSER} ] ; then \
551 git remote add others $(EOS_GIT_REPOSITRY_OTHERS_NOUSER); \
553 git remote add others $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS); \