OSDN Git Service

bug fixed:
[eos/base.git] / Makefile
1 SHELL=/bin/bash
2
3 EOS_GIT_BACKUPSITE=/net/fs08/fs08/DataBase/EosBackup.git
4 EOS_GIT_REPOSITRY= git.osdn.jp:/gitroot/eos/base.git 
5 EOS_GIT_REPOSITRY_NOUSER=git://git.osdn.jp/gitroot/eos/base.git
6 EOS_GIT_REPOSITRY_OPTIONAL= git.osdn.jp:/gitroot/eos/optional.git 
7 EOS_GIT_REPOSITRY_OPTIONAL_NOUSER=git://git.osdn.jp/gitroot/eos/optional.git
8 EOS_GIT_REPOSITRY_TUTORIAL= git.osdn.jp:/gitroot/eos/tutorial.git 
9 EOS_GIT_REPOSITRY_TUTORIAL_NOUSER=git://git.osdn.jp/gitroot/eos/tutorial.git
10 EOS_GIT_REPOSITRY_DATA= git.osdn.jp:/gitroot/eos/data.git 
11 EOS_GIT_REPOSITRY_DATA_NOUSER=git://git.osdn.jp/gitroot/eos/data.git
12 EOS_GIT_REPOSITRY_OTHERS= git.osdn.jp:/gitroot/eos/others.git 
13 EOS_GIT_REPOSITRY_OTHERS_NOUSER=git://git.osdn.jp/gitroot/eos/others.git
14
15
16 EOS_GIT_REPOSITRY_HOSTDEPEND=git.osdn.jp:/gitroot/eos/hostdepend
17 EOS_GIT_REPOSITRY_HOSTDEPEND_NOUSER=git://git.osdn.jp/gitroot/eos/hostdepend
18
19 EOS_GIT_REPOSITRY_ZEPHYR= git.osdn.jp:/gitroot/eos/zephyr.git 
20 EOS_GIT_REPOSITRY_ZEPHYR_NOUSER=git://git.osdn.jp/gitroot/eos/zephyr.git
21
22 EOS_GIT_REPOSITRY_PIONE=https://github.com/pione/pione.git
23 EOS_GIT_REPOSITRY_PIONE_NOUSER=https://github.com/pione/pione.git
24
25 help::
26         @echo ">> Help"
27         @echo ">>>> Download"
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]" 
33         @echo ""
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"
51         @echo "     [-all] : all"
52         @echo ""
53         @echo ">>>> Setting"
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."
59         @echo ""
60         @echo ">>>> Rebuild"
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"
67         @echo ""
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"
72
73
74
75 rebuild-all: rebuild-src rebuild-Objects rebuild-all-Tools
76 rebuild: rebuild-src rebuild-Objects rebuild-Tools
77 install: 
78         make install-src 
79         make install-Objects 
80         make install-Tools
81
82 rebuild-src:
83         echo "rebuild-src"
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
87
88 rebuild-Objects:
89         cd src/Objects;  make clean; make check; make depend; make ; make install
90
91 rebuild-Tools:
92         cd src/Tools;    make clean; make check; make depend; make ; make install
93
94 rebuild-all-Tools:
95         cd src/Tools;    make clean; make update; make check; make depend; make ; make install
96
97 install-src:
98         @echo "install-src"
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
101
102 install-Objects:
103         @echo "install-Objects"
104         cd src/Objects;  make check; make depend; make ; make install
105
106 install-Tools:
107         @echo "install-Tools"
108         cd src/Tools;    make check; make depend; make ; make install
109
110 setting:relink
111         if [ ! -d hostdepend] ; then \
112                 mkdir hostdepend; \
113         fi
114
115 relink:
116         ln -sf optional/doc .
117         ln -sf optional/objects .
118         ln -sf data/example .
119
120 #
121 # Add
122 #
123
124 git-add-all:: git-add git-add-data git-add-optional git-add-tutorial git-add-others
125
126 git-add:: git-add-hostdepend
127         @echo "base directory"
128         @git add -v --all . || echo "No files to be added"
129
130 git-add-hostdepend::
131         @echo "hostdepend directory"
132         @cd hostdepend/$${EOS_HOSTDIR}/ ; FLAG=N; \
133         for name in `git remote`; do if [ $$name = hostdepend$${EOS_HOSTDIR} ] ; then FLAG=Y; fi; done; \
134         if [ $$FLAG = 'N' ] ; then \
135         git remote add hostdepend$${EOS_HOSTDIR} $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_HOSTDEPEND)$${EOS_HOSTDIR}.git || echo "Already exist"; \
136         fi 
137         @cd hostdepend/$${EOS_HOSTDIR}/ ; git add -v --all . || echo "No files to be added\n" 
138
139 git-add-optional::
140         cd optional; git add -v --all . 
141
142 git-add-data::
143         cd data; git add -v --all . 
144
145 git-add-tutorial::
146         cd tutorial; git add -v --all . 
147
148 git-add-others::
149         cd others; git add -v --all . 
150
151 git-add-others2::
152         cd others2; git add --all . 
153
154 #
155 # Commit
156 #
157
158 git-commit-all:: git-commit git-commit-data git-commit-optional git-commit-tutorial git-commit-others
159
160 git-commit:: git-commit-hostdepend
161         @git commit || echo "Already commited" 
162
163 git-commit-hostdepend::
164         @cd hostdepend/$${EOS_HOSTDIR}/ ; git commit || echo "Already commited"  
165
166 git-commit-optional::
167         cd optional; git commit  
168
169 git-commit-data::
170         cd data; git commit 
171
172 git-commit-tutorial::
173         cd tutorial; git commit 
174
175 git-commit-others::
176         cd others; git commit 
177
178 git-commit-others2::
179         cd others2; git commit 
180
181 git-backup::
182         git push $(EOS_GIT_BACKUPSITE) master  --tags
183
184 #
185 # tag
186 #
187
188 git-tag::
189         @export DIRECTORYNAME=./; \
190         make git-tag-common;
191
192 git-tag-optional::
193         @export DIRECTORYNAME=optional; \
194         make git-tag-common;
195
196 git-tag-data::
197         @export DIRECTORYNAME=data; \
198         make git-tag-common;
199
200 git-tag-tutorial::
201         @export DIRECTORYNAME=tutorial; \
202         make git-tag-common;
203
204 git-tag-others::
205         @export DIRECTORYNAME=others; \
206         make git-tag-common;
207
208 git-tag-common::
209         @if [ ! -z "$$DIRECTORYNAME" ]; then \
210                 cd $$DIRECTORYNAME; \
211                 echo; \
212                 git tag | sort -k 2,2 -n -t p ; \
213                 echo -n "Version No. (e.g. vXX.YY.ZZpSSSS) : "; \
214                 read TTT; \
215                 if [ ! -z "$$TTT" ]; then \
216                         git tag $$TTT; \
217                 else \
218                         echo "Incorrect."; \
219                 fi; \
220         fi;
221
222 #
223 # push
224
225
226 git-push-all:: git-push git-push-data git-push-optional git-push-tutorial git-push-others
227
228 git-push::git-push-hostdepend
229 #       git push origin master  --tags
230         @echo "base"
231         @export DIRECTORYNAME=./; \
232         export ORIGINNAME=origin; \
233         make git-push-with-check;
234
235 git-push-hostdepend::
236 #       git subtree push --prefix=hostdepend/$${EOS_HOSTDIR}/ --squash hostdepend$${EOS_HOSTDIR} master 
237         @echo "hostdepend"
238         @cd hostdepend/$${EOS_HOSTDIR}/;  git push hostdepend$${EOS_HOSTDIR} master 
239
240 git-push-optional::
241 #       cd optional; git push optional master --tags
242         @export DIRECTORYNAME=optional; \
243         export ORIGINNAME=optional; \
244         make git-push-with-check;
245
246 git-push-data::
247 #       cd data; git push data master --tags
248         @export DIRECTORYNAME=data; \
249         export ORIGINNAME=data; \
250         make git-push-with-check;
251
252 git-push-tutorial::
253 #       cd tutorial; git push tutorial master --tags
254         @export DIRECTORYNAME=tutorial; \
255         export ORIGINNAME=tutorial; \
256         make git-push-with-check;
257
258 git-push-others::
259 #       cd others; git push others master --tags
260         @export DIRECTORYNAME=others; \
261         export ORIGINNAME=others; \
262         make git-push-with-check;
263
264 git-push-with-check::
265         @if [ ! -z "$$DIRECTORYNAME" -a ! -z "$$ORIGINNAME" ]; then \
266                 cd $$DIRECTORYNAME; \
267                 echo; \
268                 SSS=`git tag | sort -k 2,2 -n -t p | tail -1`; \
269                 if [ ! -z "$$SSS" ]; then \
270                         echo "$$SSS is Current Tags in $$ORIGINNAME."; \
271                         echo -n "Was the current tag updated? [ Y|y | N|n ]: "; \
272                         read TTT; \
273                         if [ "$$TTT" = Y -o "$$TTT" = y ]; then \
274                                 git push $$ORIGINNAME master --tags; \
275                         else \
276                                 echo "not push."; \
277                         fi; \
278                 else \
279                         echo "Tags do not exist in $$ORIGINNAME."; \
280                         echo "Before push please add tag at current repositry."; \
281                 fi; \
282         fi;
283
284 #
285 # fetch
286 #
287 git-fetch-all:: git-fetch fit-fetch-zephyr git-fetch-data git-fetch-optional git-fetch-tutorial git-fetch-others
288
289 git-fetch::git-pull-hostdepend
290         @echo "fetch: base directory" 
291         @cd .       ; git fetch origin master --tags    ; git log -1 || echo "No files to be fetched"
292
293 git-pull-hostdepend::
294         @#git subtree pull --prefix=hostdepend/$${EOS_HOSTDIR}/ --squash hostdepend$${EOS_HOSTDIR} master 
295         @echo "pull: hostdepend directory"
296         @#cd hostdepend/$${EOS_HOSTDIR}/; git pull --unshallow hostdepend$${EOS_HOSTDIR} master || echo "No files to be fetched" 
297         @cd hostdepend/$${EOS_HOSTDIR}/; git pull hostdepend$${EOS_HOSTDIR} master || echo "No files to be fetched" 
298
299 git-fetch-zephyr::
300         cd zephyr; git fetch zephyr master --tags               ; git log -1
301
302 git-fetch-data::
303         cd data    ; git fetch data master --tags               ; git log -1
304
305 git-fetch-optional::
306         cd optional; git fetch optional master --tags   ; git log -1
307
308 git-fetch-tutorial::
309         cd tutorial; git fetch tutorial master --tags   ; git log -1
310
311 git-fetch-others::
312         cd others  ; git fetch others master --tags             ; git log -1
313
314 #
315 # merge
316 #
317 git-merge-all:: git-merge git-merge-zephyr git-merge-data git-merge-optional git-merge-tutorial git-merge-others
318
319 git-merge::
320         cd .       ; git log -1; git merge FETCH_HEAD 
321
322 git-merge-zephyr::
323         cd zephyr  ; git log -1; git merge FETCH_HEAD 
324
325 git-merge-data::
326         cd data    ; git log -1; git merge FETCH_HEAD 
327
328 git-merge-optional::
329         cd optional; git log -1; git merge FETCH_HEAD
330
331 git-merge-tutorial::
332         cd tutorial; git log -1; git merge FETCH_HEAD 
333
334 git-merge-others::
335         cd others  ; git log -1; git merge FETCH_HEAD 
336
337 #
338 # Nickname 
339 #
340
341 # init
342 git-init-all:: git-init git-init-zephyr git-init-data git-init-optional git-init-tutorial git-init-others
343
344 git-init:: git-add-hostdepend
345         if [ ! -d .git ] ; then git init        ; fi
346         @export ORIGINNAME=origin; \
347         make git-remote-add;
348
349 git-init-data::
350         if [ ! -d data ] ; then mkdir data; fi
351         cd data; \
352         if [ ! -d .git ] ; then git init        ; fi ;
353         @export ORIGINNAME=data; \
354         make git-remote-add-data;
355
356 git-init-zephyr::
357         if [ ! -d zephyr ] ; then mkdir zephyr ; fi
358         cd zephyr; \
359         if [ ! -d .git ] ; then git init        ; fi ;
360         @export ORIGINNAME=zephyr; \
361         make git-remote-add-zephyr;
362
363 git-init-pione::
364         if [ ! -d pione ] ; then mkdir pione; fi
365         cd pione; \
366         if [ ! -d .git ] ; then git init        ; fi ;
367         @export ORIGINNAME=pione; \
368         make git-remote-add-pione;
369
370 git-init-optional::
371         if [ ! -d optional ] ; then mkdir optional; fi
372         if [ ! -L doc      ] ; then ln -sf optional/doc . ; fi
373         if [ ! -L objects  ] ; then ln -sf optional/objects . ; fi
374         cd optional; \
375         if [ ! -d .git ] ; then git init        ; fi ;
376         @export ORIGINNAME=optional; \
377         make git-remote-add-optional;
378
379 git-init-tutorial::
380         if [ ! -d tutorial ] ; then mkdir tutorial ; fi
381         cd tutorial; \
382         if [ ! -d .git ] ; then git init        ; fi ;
383         @export ORIGINNAME=tutorial; \
384         make git-remote-add-tutorial;
385
386 git-init-others::
387         if [ ! -d others ] ; then mkdir others; fi
388         cd others ; \
389         if [ ! -d .git ] ; then git init        ; fi ;
390         @export ORIGINNAME=others; \
391         make git-remote-add-others;
392
393 git-init-others2::
394         if [ ! -d others2 ] ; then mkdir others2; fi
395         cd others2 ; git remote add others2 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS)
396
397 # clone
398
399 git-clone-all:: git-clone
400         @if [ ! -z "$${EOS_HOME}" -a -d "$${EOS_HOME}" ] ; then \
401                 cd $${EOS_HOME} ; \
402                 make git-clone-data git-clone-optional git-clone-tutorial git-clone-others; \
403         fi;
404
405 git-clone::
406         @if [ ! -z "$${EOS_HOME}" -a -d "$${EOS_HOME}" ] ; then \
407                 TMPDIRECTORY=$$(pwd) ; \
408                 cd $${EOS_HOME} ; \
409                 if [ ! -d  .git ] ; \
410                 then \
411                         if [ -z $${EOS_GITUSER} ] ; then \
412                                 git clone --depth 1 $(EOS_GIT_REPOSITRY_NOUSER) ./ ; \
413                         else \
414                                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY) ./ ; \
415                         fi ; \
416                         cd $${TMPDIRECTORY}; \
417                         export ORIGINNAME=origin; \
418                         make git-remote-add; \
419                 fi; \
420         fi;
421
422 git-clone-zephyr::
423         if [ ! -d zephyr] ; then mkdir zephyr; fi
424         @cd zephyr;  if [ ! -d .git ] ; \
425         then \
426                 if [ -z $${EOS_GITUSER} ] ; then \
427                         git clone --depth 1 $(EOS_GIT_REPOSITRY_ZEPHYR_NOUSER) ./ ; \
428                 else \
429                         git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_ZEPHYR) ./; \
430                 fi ; \
431                 cd ../ ; \
432                 export ORIGINNAME=zephyr; \
433                 make git-remote-add-zephyr; \
434         fi
435
436 git-clone-data::
437         if [ ! -d data ] ; then mkdir data; fi
438         @cd data;  if [ ! -d .git ] ; \
439         then \
440                 if [ -z $${EOS_GITUSER} ] ; then \
441                         git clone --depth 1 $(EOS_GIT_REPOSITRY_DATA_NOUSER) ./ ; \
442                 else \
443                         git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA) ./; \
444                 fi ; \
445                 cd ../ ; \
446                 export ORIGINNAME=data; \
447                 make git-remote-add-data; \
448         fi
449
450 git-clone-optional::
451         if [ ! -d optional ] ; then mkdir optional; fi
452         if [ ! -L doc      ] ; then ln -sf optional/doc . ; fi
453         if [ ! -L objects  ] ; then ln -sf optional/objects . ; fi
454         @cd optional; if [ ! -d .git ] ; \
455         then \
456                 if [ -z $${EOS_GITUSER} ] ; then \
457                         git clone --depth 1 $(EOS_GIT_REPOSITRY_OPTIONAL_NOUSER) ./ ; \
458                 else \
459                         git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL) ./ ; \
460                 fi ; \
461                 cd ../ ; \
462                 export ORIGINNAME=optional; \
463                 make git-remote-add-optional; \
464         fi
465
466 git-clone-tutorial::
467         if [ ! -d tutorial ] ; then mkdir tutorial ; fi
468         @cd tutorial; if [ ! -d .git ] ; \
469         then \
470                 if [ -z $${EOS_GITUSER} ] ; then \
471                         git clone --depth 1 $(EOS_GIT_REPOSITRY_TUTORIAL_NOUSER) ./ ; \
472                 else \
473                         git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL) ./ ; \
474                 fi; \
475                 cd ../ ; \
476                 export ORIGINNAME=tutorial; \
477                 make git-remote-add-tutorial; \
478         fi
479
480 git-clone-others::
481         if [ ! -d others ] ; then mkdir others; fi
482         @cd others ; if [ ! -d .git ] ; \
483         then \
484                 if [ -z $${EOS_GITUSER} ] ; then \
485                         git clone --depth 1 $(EOS_GIT_REPOSITRY_OTHERS_NOUSER) ./ ; \
486                 else \
487                         git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS) ./ ; \
488                 fi; \
489                 cd ../ ; \
490                 export ORIGINNAME=others; \
491                 make git-remote-add-others; \
492         fi
493 #
494 # add
495 #
496 git-remote-add::
497         @if [ ! -z "$$ORIGINNAME" -a ! -z "$${EOS_HOME}" -a -d "$${EOS_HOME}"  ]; then \
498                 cd $${EOS_HOME}; \
499                 SSS=`git remote -v | awk '{print $$1}' | grep origin`; if [ ! -z "$$SSS" ] ; then git remote rm origin ; fi ; \
500                 if [ -z $${EOS_GITUSER} ] ; then \
501                         git remote add origin    $(EOS_GIT_REPOSITRY_NOUSER); \
502                 else \
503                         git remote add origin    $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY); \
504                 fi ; \
505         fi;
506
507 git-remote-add-zephyr::
508         @if [ ! -z "$$ORIGINNAME" ]; then \
509                 cd $$ORIGINNAME; \
510                 SSS=`git remote -v | awk '{print $$1}' | grep data`; if [ ! -z "$$SSS" ] ; then git remote rm zephyr; fi ; \
511                 if [ -z $${EOS_GITUSER} ] ; then \
512                         git remote add zephyr $(EOS_GIT_REPOSITRY_ZEPHYR_NOUSER); \
513                 else \
514                         git remote add zephyr $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_ZEPHYR); \
515                 fi ; \
516         fi;
517
518 git-remote-add-data::
519         @if [ ! -z "$$ORIGINNAME" ]; then \
520                 cd $$ORIGINNAME; \
521                 SSS=`git remote -v | awk '{print $$1}' | grep data`; if [ ! -z "$$SSS" ] ; then git remote rm data ; fi ; \
522                 if [ -z $${EOS_GITUSER} ] ; then \
523                         git remote add data    $(EOS_GIT_REPOSITRY_DATA_NOUSER); \
524                 else \
525                         git remote add data    $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA); \
526                 fi ; \
527         fi;
528
529 git-remote-add-optional::
530         @if [ ! -z "$$ORIGINNAME" ]; then \
531                 cd $$ORIGINNAME; \
532                 SSS=`git remote -v | awk '{print $$1}' | grep optional`; if [ ! -z "$$SSS" ] ; then git remote rm optional ; fi ; \
533                 if [ -z $${EOS_GITUSER} ] ; then \
534                         git remote add optional    $(EOS_GIT_REPOSITRY_OPTIONAL_NOUSER); \
535                 else \
536                         git remote add optional    $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL); \
537                 fi ; \
538         fi;
539
540 git-remote-add-tutorial::
541         @if [ ! -z "$$ORIGINNAME" ]; then \
542                 cd $$ORIGINNAME; \
543                 SSS=`git remote -v | awk '{print $$1}' | grep tutorial`; if [ ! -z "$$SSS" ] ; then git remote rm tutorial ; fi ; \
544                 if [ -z $${EOS_GITUSER} ] ; then \
545                         git remote add tutorial    $(EOS_GIT_REPOSITRY_TUTORIAL_NOUSER); \
546                 else \
547                         git remote add tutorial    $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL); \
548                 fi ; \
549         fi;
550
551 git-remote-add-others::
552         @if [ ! -z "$$ORIGINNAME" ]; then \
553                 cd $$ORIGINNAME; \
554                 SSS=`git remote -v | awk '{print $$1}' | grep others`; if [ ! -z "$$SSS" ] ; then git remote rm others ; fi ; \
555                 if [ -z $${EOS_GITUSER} ] ; then \
556                         git remote add others    $(EOS_GIT_REPOSITRY_OTHERS_NOUSER); \
557                 else \
558                         git remote add others    $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS); \
559                 fi ; \
560         fi;