SHELL=/bin/bash
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_TUTORIAL_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_OTHERS_NOUSER=git://git.sourceforge.jp/gitroot/eos/others.git
+EOS_GIT_REPOSITRY= git.osdn.jp:/gitroot/eos/base.git
+EOS_GIT_REPOSITRY_NOUSER=git://git.osdn.jp/gitroot/eos/base.git
+EOS_GIT_REPOSITRY_OPTIONAL= git.osdn.jp:/gitroot/eos/optional.git
+EOS_GIT_REPOSITRY_OPTIONAL_NOUSER=git://git.osdn.jp/gitroot/eos/optional.git
+EOS_GIT_REPOSITRY_TUTORIAL= git.osdn.jp:/gitroot/eos/tutorial.git
+EOS_GIT_REPOSITRY_TUTORIAL_NOUSER=git://git.osdn.jp/gitroot/eos/tutorial.git
+EOS_GIT_REPOSITRY_DATA= git.osdn.jp:/gitroot/eos/data.git
+EOS_GIT_REPOSITRY_DATA_NOUSER=git://git.osdn.jp/gitroot/eos/data.git
+EOS_GIT_REPOSITRY_OTHERS= git.osdn.jp:/gitroot/eos/others.git
+EOS_GIT_REPOSITRY_OTHERS_NOUSER=git://git.osdn.jp/gitroot/eos/others.git
-EOS_GIT_REPOSITRY_HOSTDEPEND=git.sourceforge.jp:/gitroot/eos/hostdepend
-EOS_GIT_REPOSITRY_HOSTDEPEND_NOUSER=git://git.sourceforge.jp/gitroot/eos/hostdepend
+EOS_GIT_REPOSITRY_HOSTDEPEND=git.osdn.jp:/gitroot/eos/hostdepend
+EOS_GIT_REPOSITRY_HOSTDEPEND_NOUSER=git://git.osdn.jp/gitroot/eos/hostdepend
-EOS_GIT_REPOSITRY_ZEPHYR= git.sourceforge.jp:/gitroot/eos/zephyr.git
-EOS_GIT_REPOSITRY_ZEPHYR_NOUSER=git://git.sourceforge.jp/gitroot/eos/zephyr.git
+EOS_GIT_REPOSITRY_ZEPHYR= git.osdn.jp:/gitroot/eos/zephyr.git
+EOS_GIT_REPOSITRY_ZEPHYR_NOUSER=git://git.osdn.jp/gitroot/eos/zephyr.git
EOS_GIT_REPOSITRY_PIONE=https://github.com/pione/pione.git
EOS_GIT_REPOSITRY_PIONE_NOUSER=https://github.com/pione/pione.git
rebuild-src:
echo "rebuild-src"
cd src; rm -f Makefile; cp -f Config/Template/Makefile Makefile
- 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
- 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
+ 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 ; \
+ rm -f Objects/Config/Define.inc; sed -e s/worldname/Objects/ Config/Template/ObjectsHomeTemplate.Dir/Config/Define.inc > Objects/Config/Define.inc
+ 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 ; \
+ rm -f Tools/Config/Define.inc ; sed -e s/worldname/Tools/ Config/Template/ToolsHomeTemplate.Dir/Config/Define.inc > Tools/Config/Define.inc
rebuild-Objects:
cd src/Objects; make clean; make check; make depend; make ; make install
cd src/Tools; make check; make depend; make ; make install
setting:relink
- if [ ! -d hostdepend] ; then \
+ if [ ! -d hostdepend ] ; then \
mkdir hostdepend; \
fi
relink:
- ln -sf optional/doc .
- ln -sf optional/objects .
- ln -sf data/example .
+ rm doc; ln -sf optional/doc .
+ rm objects; ln -sf optional/objects .
+ rm example; ln -sf data/SampleData example
#
# Add
git-add-hostdepend::
@echo "hostdepend directory"
- @cd hostdepend/$${EOS_HOSTDIR}/ ; git remote add hostdepend$${EOS_HOSTDIR} $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_HOSTDEPEND)$${EOS_HOSTDIR}.git || echo "Already exist"
+ @cd hostdepend/$${EOS_HOSTDIR}/ ; FLAG=N; \
+ for name in `git remote`; do if [ $$name = hostdepend$${EOS_HOSTDIR} ] ; then FLAG=Y; fi; done; \
+ if [ $$FLAG = 'N' ] ; then \
+ git remote add hostdepend$${EOS_HOSTDIR} $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_HOSTDEPEND)$${EOS_HOSTDIR}.git || echo "Already exist"; \
+ fi
+ @cd hostdepend/$${EOS_HOSTDIR}/ ; FLAG=N; \
+ for name in `git remote`; do if [ $$name = origin ] ; then FLAG=Y; fi; done; \
+ if [ $$FLAG = 'N' ] ; then \
+ git remote add origin $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_HOSTDEPEND)$${EOS_HOSTDIR}.git || echo "Already exist"; \
+ elif [ ! -z $${EOS_GITUSER} ] ; then \
+ git remote remove origin || echo "No exist"; \
+ git remote add origin $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_HOSTDEPEND)$${EOS_HOSTDIR}.git || echo "Already exist"; \
+ fi
@cd hostdepend/$${EOS_HOSTDIR}/ ; git add -v --all . || echo "No files to be added\n"
git-add-optional::
make git-push-with-check;
git-push-hostdepend::
- #git subtree push --prefix=hostdepend/$${EOS_HOSTDIR}/ --squash hostdepend$${EOS_HOSTDIR} master
+ @#git subtree push --prefix=hostdepend/$${EOS_HOSTDIR}/ --squash hostdepend$${EOS_HOSTDIR} master
@echo "hostdepend"
- @cd hostdepend/$${EOS_HOSTDIR}/; git push hostdepend$${EOS_HOSTDIR} master
+ @#cd hostdepend/$${EOS_HOSTDIR}/; git push hostdepend$${EOS_HOSTDIR} master
+ @cd hostdepend/$${EOS_HOSTDIR}/; git push || git push --set-upstream origin master || git push hostdepend$${EOS_HOSTDIR} master
git-push-optional::
# cd optional; git push optional master --tags
SSS=`git tag | sort -k 2,2 -n -t p | tail -1`; \
if [ ! -z "$$SSS" ]; then \
echo "$$SSS is Current Tags in $$ORIGINNAME."; \
- echo -n "Was the current tag updated? [ Y|y | Nn ]: "; \
+ echo -n "Was the current tag updated? [ Y|y | N|n ]: "; \
read TTT; \
if [ "$$TTT" = Y -o "$$TTT" = y ]; then \
git push $$ORIGINNAME master --tags; \
git-pull-hostdepend::
@#git subtree pull --prefix=hostdepend/$${EOS_HOSTDIR}/ --squash hostdepend$${EOS_HOSTDIR} master
@echo "pull: hostdepend directory"
+ @#cd hostdepend/$${EOS_HOSTDIR}/; git pull --unshallow hostdepend$${EOS_HOSTDIR} master || echo "No files to be fetched"
@cd hostdepend/$${EOS_HOSTDIR}/; git pull hostdepend$${EOS_HOSTDIR} master || echo "No files to be fetched"
git-fetch-zephyr::
git-merge-all:: git-merge git-merge-zephyr git-merge-data git-merge-optional git-merge-tutorial git-merge-others
git-merge::
- cd . ; git log -1; git merge FETCH_HEAD
+ #cd . ; git log -1; git merge FETCH_HEAD
+ cd . ; git log -1; git merge
git-merge-zephyr::
- cd zephyr ; git log -1; git merge FETCH_HEAD
+ #cd zephyr ; git log -1; git merge FETCH_HEAD
+ cd zephyr ; git log -1; git merge
git-merge-data::
- cd data ; git log -1; git merge FETCH_HEAD
+ #cd data ; git log -1; git merge FETCH_HEAD
+ cd data ; git log -1; git merge
git-merge-optional::
- cd optional; git log -1; git merge FETCH_HEAD
+ #cd optional; git log -1; git merge FETCH_HEAD
+ cd optional; git log -1; git merge
git-merge-tutorial::
- cd tutorial; git log -1; git merge FETCH_HEAD
+ #cd tutorial; git log -1; git merge FETCH_HEAD
+ cd tutorial; git log -1; git merge
git-merge-others::
- cd others ; git log -1; git merge FETCH_HEAD
+ #cd others ; git log -1; git merge FETCH_HEAD
+ cd others ; git log -1; git merge
#
# Nickname