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_NOUSER=git://git.sourceforge.jp/gitroot/eos/base.git
4 EOS_GIT_REPOSITRY_OPTIONAL= git.sourceforge.jp:/gitroot/eos/optional.git
5 EOS_GIT_REPOSITRY_OPTIONAL_NOUSER=git://git.sourceforge.jp/gitroot/eos/optional.git
6 EOS_GIT_REPOSITRY_TUTORIAL= git.sourceforge.jp:/gitroot/eos/tutorial.git
7 EOS_GIT_REPOSITRY_TUTORIAL_NOUSER=git://git.sourceforge.jp/gitroot/eos/tutorial.git
8 EOS_GIT_REPOSITRY_DATA= git.sourceforge.jp:/gitroot/eos/data.git
9 EOS_GIT_REPOSITRY_DATA_NOUSER=git://git.sourceforge.jp/gitroot/eos/data.git
10 EOS_GIT_REPOSITRY_OTHERS= git.sourceforge.jp:/gitroot/eos/others.git
11 EOS_GIT_REPOSITRY_OTHERS_NOUSER=git://git.sourceforge.jp/gitroot/eos/others.git
14 EOS_GIT_REPOSITRY_HOSTDEPEND=git.sourceforge.jp:/gitroot/eos/hostdepend
15 EOS_GIT_REPOSITRY_HOSTDEPEND_NOUSER=git://git.sourceforge.jp/gitroot/eos/hostdepend
17 EOS_GIT_REPOSITRY_ZEPHYR= git.sourceforge.jp:/gitroot/eos/zephyr.git
18 EOS_GIT_REPOSITRY_ZEPHYR_NOUSER=git://git.sourceforge.jp/gitroot/eos/zephyr.git
20 EOS_GIT_REPOSITRY_PIONE=https://github.com/pione/pione.git
21 EOS_GIT_REPOSITRY_PIONE_NOUSER=https://github.com/pione/pione.git
26 @echo "---- To register new/Modified source codes. ----"
27 @echo " $$ make git-add or git-add[-all|-data|-tutorial|-optional|-others|-others2]"
28 @echo " $$ make git-commit or git-commit[-all|-data|-tutorial|-optional|-others|-others2]"
29 @echo " $$ make git-tag or git-tag[-all|-data|-tutorial|-optional|-others|-others2]"
30 @echo " $$ make git-push or git-push[-all|-data|-tutorial|-optional|-others]"
32 @echo "---- To fetch and merge new/modified source codes. ----"
33 @echo " $$ make git-fetch or git-fetch[-all|-data|-tutorial|-optional|-others]"
34 @echo " $$ make git-merge or git-merge[-all|-data|-tutorial|-optional|-others]"
35 @echo " $$ make setting"
36 @echo "---- To init git repository ----"
37 @echo " $$ make git-init or git-init[-all|-zephyr|-data|-tutorial|-optional|-others]"
38 @echo "---- To clonse git repository ----"
39 @echo " $$ make git-clone or git-clone[-all|-zephyr|-data|-tutorial|-optional|-others]"
40 @echo "---- option ----"
41 @echo " [] : base only"
42 @echo " [-zephyr] : zephyr (for GUI/browser)"
43 @echo " [-pione] : pione (for process control with GUI/browser)"
44 @echo " [-data] : data (for test)"
45 @echo " [-tutorial] : tutorial"
46 @echo " [-optional] : optional(for documents)"
47 @echo " [-others] : other source codes for utils"
48 @echo " [-others2] : other source codes for utils"
52 @echo "---- To set Eos ----"
53 @echo " $$ make setting ; # Create links."
54 @echo " $$ make install ; # No clean, just install."
55 @echo " $$ make rebuild ; # Clean and install."
56 @echo " $$ make rebuild-all ; # Update(prototype), clean and install."
59 @echo "---- To rebuild source codes of Eos ----"
60 @echo " $$ make rebuild"
61 @echo "---- To update prototype source codes and rebuild source codes of Eos ----"
62 @echo " $$ make rebuild-all"
63 @echo "---- To set Eos ----"
64 @echo " $$ make setting"
66 @echo ">>>> Setting for Eos utils using other softwares "
67 @echo "---- To set Eos ----"
68 @echo " $$ cd util; make setting"
69 @echo " $$ cd util; make rebuild"
73 rebuild-all: rebuild-src rebuild-Objects rebuild-all-Tools
74 rebuild: rebuild-src rebuild-Objects rebuild-Tools
82 cd src; rm -f Makefile; cp -f Config/Template/Makefile Makefile
83 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
84 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
87 cd src/Objects; make clean; make check; make depend; make ; make install
90 cd src/Tools; make clean; make check; make depend; make ; make install
93 cd src/Tools; make clean; make update; make check; make depend; make ; make install
97 cd src; rm -f Objects/Makefile; cp -f Config/Template/ObjectsHomeTemplate.Dir/Makefile Objects/Makefile
98 cd src; rm -f Tools/Makefile; cp -f Config/Template/ToolsHomeTemplate.Dir/Makefile Tools/Makefile
101 @echo "install-Objects"
102 cd src/Objects; make check; make depend; make ; make install
105 @echo "install-Tools"
106 cd src/Tools; make check; make depend; make ; make install
111 ln -sf optional/doc .
112 ln -sf optional/objects .
113 ln -sf data/example .
119 git-add-all:: git-add git-add-data git-add-optional git-add-tutorial git-add-others
121 git-add:: git-add-hostdepend
122 @echo "base directory"
123 @git add -v --all . || echo "No files to be added"
126 @echo "hostdepend directory"
127 @cd hostdepend/$${EOS_HOSTDIR}/ ; git remote add hostdepend$${EOS_HOSTDIR} $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_HOSTDEPEND)$${EOS_HOSTDIR}.git || echo "Already exist"
128 @cd hostdepend/$${EOS_HOSTDIR}/ ; git add -v --all . || echo "No files to be added\n"
131 cd optional; git add -v --all .
134 cd data; git add -v --all .
137 cd tutorial; git add -v --all .
140 cd others; git add -v --all .
143 cd others2; git add --all .
149 git-commit-all:: git-commit git-commit-data git-commit-optional git-commit-tutorial git-commit-others
151 git-commit:: git-commit-hostdepend
152 @git commit || echo "Already commited"
154 git-commit-hostdepend::
155 @cd hostdepend/$${EOS_HOSTDIR}/ ; git commit || echo "Already commited"
157 git-commit-optional::
158 cd optional; git commit
163 git-commit-tutorial::
164 cd tutorial; git commit
167 cd others; git commit
170 cd others2; git commit
173 git push $(EOS_GIT_BACKUPSITE) master --tags
180 @export DIRECTORYNAME=./; \
184 @export DIRECTORYNAME=optional; \
188 @export DIRECTORYNAME=data; \
192 @export DIRECTORYNAME=tutorial; \
196 @export DIRECTORYNAME=others; \
200 @if [ ! -z "$$DIRECTORYNAME" ]; then \
201 cd $$DIRECTORYNAME; \
203 git tag | sort -k 2,2 -n -t p ; \
204 echo "Version No. (e.g. vXX.YY.ZZpSSSS)"; \
206 if [ ! -z "$$TTT" ]; then \
217 git-push-all:: git-push git-push-data git-push-optional git-push-tutorial git-push-others
219 git-push::git-push-hostdepend
220 # git push origin master --tags
222 @export DIRECTORYNAME=./; \
223 export ORIGINNAME=origin; \
224 make git-push-with-check;
226 git-push-hostdepend::
227 #git subtree push --prefix=hostdepend/$${EOS_HOSTDIR}/ --squash hostdepend$${EOS_HOSTDIR} master
229 @cd hostdepend/$${EOS_HOSTDIR}/; git push hostdepend$${EOS_HOSTDIR} master
232 # cd optional; git push optional master --tags
233 @export DIRECTORYNAME=optional; \
234 export ORIGINNAME=optional; \
235 make git-push-with-check;
238 # cd data; git push data master --tags
239 @export DIRECTORYNAME=data; \
240 export ORIGINNAME=data; \
241 make git-push-with-check;
244 # cd tutorial; git push tutorial master --tags
245 @export DIRECTORYNAME=tutorial; \
246 export ORIGINNAME=tutorial; \
247 make git-push-with-check;
250 # cd others; git push others master --tags
251 @export DIRECTORYNAME=others; \
252 export ORIGINNAME=others; \
253 make git-push-with-check;
255 git-push-with-check::
256 @if [ ! -z "$$DIRECTORYNAME" -a ! -z "$$ORIGINNAME" ]; then \
257 cd $$DIRECTORYNAME; \
259 SSS=`git tag | sort -k 2,2 -n -t p | tail -1`; \
260 if [ ! -z "$$SSS" ]; then \
261 echo "$$SSS is Current Tags in $$ORIGINNAME."; \
262 echo "Did Tag update? Y(: push) | N(or Otherwords : not push)"; \
264 if [ "$$TTT" = Y ]; then \
265 git push $$ORIGINNAME master --tags; \
270 echo "Tags do not exist in $$ORIGINNAME."; \
271 echo "Before push please add tag at current repositry."; \
278 git-fetch-all:: git-fetch fit-fetch-zephyr git-fetch-data git-fetch-optional git-fetch-tutorial git-fetch-others
280 git-fetch::git-pull-hostdepend
281 @echo "fetch: base directory"
282 @cd . ; git fetch origin master --tags ; git log -1 || echo "No files to be fetched"
284 git-pull-hostdepend::
285 @#git subtree pull --prefix=hostdepend/$${EOS_HOSTDIR}/ --squash hostdepend$${EOS_HOSTDIR} master
286 @echo "pull: hostdepend directory"
287 @cd hostdepend/$${EOS_HOSTDIR}/; git pull hostdepend$${EOS_HOSTDIR} master || echo "No files to be fetched"
290 cd zephyr; git fetch zephyr master --tags ; git log -1
293 cd data ; git fetch data master --tags ; git log -1
296 cd optional; git fetch optional master --tags ; git log -1
299 cd tutorial; git fetch tutorial master --tags ; git log -1
302 cd others ; git fetch others master --tags ; git log -1
307 git-merge-all:: git-merge git-merge-zephyr git-merge-data git-merge-optional git-merge-tutorial git-merge-others
310 cd . ; git log -1; git merge FETCH_HEAD
313 cd zephyr ; git log -1; git merge FETCH_HEAD
316 cd data ; git log -1; git merge FETCH_HEAD
319 cd optional; git log -1; git merge FETCH_HEAD
322 cd tutorial; git log -1; git merge FETCH_HEAD
325 cd others ; git log -1; git merge FETCH_HEAD
332 git-init-all:: git-init git-init-zephyr git-init-data git-init-optional git-init-tutorial git-init-others
334 git-init:: git-add-hostdepend
335 if [ ! -d .git ] ; then git init ; fi
336 @export ORIGINNAME=origin; \
340 if [ ! -d data ] ; then mkdir data; fi
342 if [ ! -d .git ] ; then git init ; fi ;
343 @export ORIGINNAME=data; \
344 make git-remote-add-data;
347 if [ ! -d zephyr ] ; then mkdir zephyr ; fi
349 if [ ! -d .git ] ; then git init ; fi ;
350 @export ORIGINNAME=zephyr; \
351 make git-remote-add-zephyr;
354 if [ ! -d pione ] ; then mkdir pione; fi
356 if [ ! -d .git ] ; then git init ; fi ;
357 @export ORIGINNAME=pione; \
358 make git-remote-add-pione;
361 if [ ! -d optional ] ; then mkdir optional; fi
362 if [ ! -L doc ] ; then ln -sf optional/doc . ; fi
363 if [ ! -L objects ] ; then ln -sf optional/objects . ; fi
365 if [ ! -d .git ] ; then git init ; fi ;
366 @export ORIGINNAME=optional; \
367 make git-remote-add-optional;
370 if [ ! -d tutorial ] ; then mkdir tutorial ; fi
372 if [ ! -d .git ] ; then git init ; fi ;
373 @export ORIGINNAME=tutorial; \
374 make git-remote-add-tutorial;
377 if [ ! -d others ] ; then mkdir others; fi
379 if [ ! -d .git ] ; then git init ; fi ;
380 @export ORIGINNAME=others; \
381 make git-remote-add-others;
384 if [ ! -d others2 ] ; then mkdir others2; fi
385 cd others2 ; git remote add others2 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS)
389 git-clone-all:: git-clone
390 @if [ ! -z "$${EOS_HOME}" -a -d "$${EOS_HOME}" ] ; then \
392 make git-clone-data git-clone-optional git-clone-tutorial git-clone-others; \
396 @if [ ! -z "$${EOS_HOME}" -a -d "$${EOS_HOME}" ] ; then \
397 TMPDIRECTORY=$$(pwd) ; \
401 if [ -z $${EOS_GITUSER} ] ; then \
402 git clone --depth 1 $(EOS_GIT_REPOSITRY_NOUSER) ./ ; \
404 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY) ./ ; \
406 cd $${TMPDIRECTORY}; \
407 export ORIGINNAME=origin; \
408 make git-remote-add; \
413 if [ ! -d zephyr] ; then mkdir zephyr; fi
414 @cd zephyr; if [ ! -d .git ] ; \
416 if [ -z $${EOS_GITUSER} ] ; then \
417 git clone --depth 1 $(EOS_GIT_REPOSITRY_ZEPHYR_NOUSER) ./ ; \
419 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_ZEPHYR) ./; \
422 export ORIGINNAME=zephyr; \
423 make git-remote-add-zephyr; \
427 if [ ! -d data ] ; then mkdir data; fi
428 @cd data; if [ ! -d .git ] ; \
430 if [ -z $${EOS_GITUSER} ] ; then \
431 git clone --depth 1 $(EOS_GIT_REPOSITRY_DATA_NOUSER) ./ ; \
433 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA) ./; \
436 export ORIGINNAME=data; \
437 make git-remote-add-data; \
441 if [ ! -d optional ] ; then mkdir optional; fi
442 if [ ! -L doc ] ; then ln -sf optional/doc . ; fi
443 if [ ! -L objects ] ; then ln -sf optional/objects . ; fi
444 @cd optional; if [ ! -d .git ] ; \
446 if [ -z $${EOS_GITUSER} ] ; then \
447 git clone --depth 1 $(EOS_GIT_REPOSITRY_OPTIONAL_NOUSER) ./ ; \
449 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL) ./ ; \
452 export ORIGINNAME=optional; \
453 make git-remote-add-optional; \
457 if [ ! -d tutorial ] ; then mkdir tutorial ; fi
458 @cd tutorial; if [ ! -d .git ] ; \
460 if [ -z $${EOS_GITUSER} ] ; then \
461 git clone --depth 1 $(EOS_GIT_REPOSITRY_TUTORIAL_NOUSER) ./ ; \
463 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL) ./ ; \
466 export ORIGINNAME=tutorial; \
467 make git-remote-add-tutorial; \
471 if [ ! -d others ] ; then mkdir others; fi
472 @cd others ; if [ ! -d .git ] ; \
474 if [ -z $${EOS_GITUSER} ] ; then \
475 git clone --depth 1 $(EOS_GIT_REPOSITRY_OTHERS_NOUSER) ./ ; \
477 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS) ./ ; \
480 export ORIGINNAME=others; \
481 make git-remote-add-others; \
487 @if [ ! -z "$$ORIGINNAME" -a ! -z "$${EOS_HOME}" -a -d "$${EOS_HOME}" ]; then \
489 SSS=`git remote -v | awk '{print $$1}' | grep origin`; if [ ! -z "$$SSS" ] ; then git remote rm origin ; fi ; \
490 if [ -z $${EOS_GITUSER} ] ; then \
491 git remote add origin $(EOS_GIT_REPOSITRY_NOUSER); \
493 git remote add origin $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY); \
497 git-remote-add-zephyr::
498 @if [ ! -z "$$ORIGINNAME" ]; then \
500 SSS=`git remote -v | awk '{print $$1}' | grep data`; if [ ! -z "$$SSS" ] ; then git remote rm zephyr; fi ; \
501 if [ -z $${EOS_GITUSER} ] ; then \
502 git remote add zephyr $(EOS_GIT_REPOSITRY_ZEPHYR_NOUSER); \
504 git remote add zephyr $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_ZEPHYR); \
508 git-remote-add-data::
509 @if [ ! -z "$$ORIGINNAME" ]; then \
511 SSS=`git remote -v | awk '{print $$1}' | grep data`; if [ ! -z "$$SSS" ] ; then git remote rm data ; fi ; \
512 if [ -z $${EOS_GITUSER} ] ; then \
513 git remote add data $(EOS_GIT_REPOSITRY_DATA_NOUSER); \
515 git remote add data $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA); \
519 git-remote-add-optional::
520 @if [ ! -z "$$ORIGINNAME" ]; then \
522 SSS=`git remote -v | awk '{print $$1}' | grep optional`; if [ ! -z "$$SSS" ] ; then git remote rm optional ; fi ; \
523 if [ -z $${EOS_GITUSER} ] ; then \
524 git remote add optional $(EOS_GIT_REPOSITRY_OPTIONAL_NOUSER); \
526 git remote add optional $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL); \
530 git-remote-add-tutorial::
531 @if [ ! -z "$$ORIGINNAME" ]; then \
533 SSS=`git remote -v | awk '{print $$1}' | grep tutorial`; if [ ! -z "$$SSS" ] ; then git remote rm tutorial ; fi ; \
534 if [ -z $${EOS_GITUSER} ] ; then \
535 git remote add tutorial $(EOS_GIT_REPOSITRY_TUTORIAL_NOUSER); \
537 git remote add tutorial $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL); \
541 git-remote-add-others::
542 @if [ ! -z "$$ORIGINNAME" ]; then \
544 SSS=`git remote -v | awk '{print $$1}' | grep others`; if [ ! -z "$$SSS" ] ; then git remote rm others ; fi ; \
545 if [ -z $${EOS_GITUSER} ] ; then \
546 git remote add others $(EOS_GIT_REPOSITRY_OTHERS_NOUSER); \
548 git remote add others $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS); \