topdir.mk: Add target git-jannet-init, reorganized the other git targets a bit

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2013-06-11 13:49:54 +00:00
commit b737b9c779

View file

@ -95,20 +95,24 @@ git-init-from-cvs: git-init
list-cvs-files.sh -f | xargs git add list-cvs-files.sh -f | xargs git add
git commit -m "initial checkin of $(RPM_VERSION)" git commit -m "initial checkin of $(RPM_VERSION)"
git-config:
git config --global user.name $(FULL_NAME)
git config --global user.email $(WHOAMI)@jannet.de
WHOAMI = $(shell whoami) WHOAMI = $(shell whoami)
REMOTE_GIT_DIR = /srv/git/$(WHOAMI)/proj/$(PROJECT) REMOTE_GIT_DIR = /srv/git/$(WHOAMI)/proj/$(PROJECT)
git-clone-to-remote: git-config git-config:
#ssh git.jannet.de "/opt/ytools/bin/git-srv-admin.sh -j create-personal-project $(PROJECT)"
git remote add origin ssh://$(WHOAMI)@git.jannet.de$(REMOTE_GIT_DIR) git remote add origin ssh://$(WHOAMI)@git.jannet.de$(REMOTE_GIT_DIR)
git config --global user.name $(FULL_NAME) git config --global user.name $(FULL_NAME)
git config --global user.email $(WHOAMI)@jannet.de git config --global user.email $(WHOAMI)@jannet.de
git-clone-to-remote:
ssh git.jannet.de "/opt/ytools/bin/git-srv-admin.sh -j create-personal-project $(PROJECT)"
git push --all origin git push --all origin
git-import: git-init
git add -A
git commit -am "o initial checkin"
git-jannet-init: git-init git-clone-to-remote
projects-%: projects-%:
python $(MOD_SCRIPT_DIR)/build.py $* $(PROJECT) python $(MOD_SCRIPT_DIR)/build.py $* $(PROJECT)