From: j8takagi Date: Wed, 24 Jul 2013 13:10:22 +0000 (+0900) Subject: gitディレクトリーを削除。Makefileでの動作は不向きなため X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=072c47692aa15d9c118534dbdedbc342df68dc76;p=makefiles.git gitディレクトリーを削除。Makefileでの動作は不向きなため --- diff --git a/git/Makefile b/git/Makefile deleted file mode 100644 index 5d43e03..0000000 --- a/git/Makefile +++ /dev/null @@ -1 +0,0 @@ --include gitremote.mk diff --git a/git/gitremote.mk b/git/gitremote.mk deleted file mode 100644 index 30c16aa..0000000 --- a/git/gitremote.mk +++ /dev/null @@ -1,31 +0,0 @@ -CD := cd -ECHO := echo -GIT := git -LS := ls -MKDIR := mkdir -SSH := ssh - -SERVER := www.j8takagi.net -REPOSDIR := /home/git - -PROJECTNAME := $(notdir $(CURDIR)) -REPOSNAME := $(PROJECTNAME).git -REPOS := $(REPOSDIR)/$(REPOSNAME) -SERVERREPOS := $(SERVER):$(REPOS) - -REPOSEXT := $(strip $(shell $(SSH) $(SERVER) $(LS) -d $(REPOS) || $(ECHO))) -GITORIGIN := $(strip $(shell $(GIT) remote | grep origin)) - -.PHONY: gitorigin-add gitorigin-show gitpush gitorigin-clean gitrepos - -gitpush: gitorigin - $(GIT) push --set-upstream origin master - -gitorigin: gitrepos - $(if $(GITORIGIN),@($(ECHO) 'remote origin exists. git remote set-url origin '),$(GIT) remote add origin $(SERVERREPOS)) - -gitrepos: - $(if $(REPOSEXT),,$(SSH) $(SERVER) '$(MKDIR) $(REPOSDIR)/$(REPOSNAME) && $(CD) $(REPOS) && $(GIT) init --bare') - -gitorigin-clean: - $(GIT) remote remove origin