From 072c47692aa15d9c118534dbdedbc342df68dc76 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Wed, 24 Jul 2013 22:10:22 +0900 Subject: [PATCH] =?utf8?q?git=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF=E3=83=88?= =?utf8?q?=E3=83=AA=E3=83=BC=E3=82=92=E5=89=8A=E9=99=A4=E3=80=82Makefile?= =?utf8?q?=E3=81=A7=E3=81=AE=E5=8B=95=E4=BD=9C=E3=81=AF=E4=B8=8D=E5=90=91?= =?utf8?q?=E3=81=8D=E3=81=AA=E3=81=9F=E3=82=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- git/Makefile | 1 - git/gitremote.mk | 31 ------------------------------- 2 files changed, 32 deletions(-) delete mode 100644 git/Makefile delete mode 100644 git/gitremote.mk 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 -- 2.18.0