aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Laboissiere <rafael@laboissiere.net>2015-05-09 06:01:48 -0300
committerRafael Laboissiere <rafael@laboissiere.net>2015-05-09 11:04:52 +0200
commitbc3b67956717ad218d2bce5114c491556f62ff2e (patch)
treed2f3bd089b7fc1d09612b57a3b5377d3e2c0ad77
parent01cb2d675103283664e0a870818cfc413f546b37 (diff)
Renamed git_multimail.py
The file has now the same name as its installation target (git-multimail). This changes allows the generalization of the installation rule in Makefile, in whihc the scripts are now listed in a variable.
-rw-r--r--Makefile13
-rwxr-xr-xgit-multimail (renamed from git_multimail.py)0
2 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 28f287b..76a8413 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,14 @@
DESTDIR = /usr/local/bin
INSTALL = install --mode=755
+SCRIPTS = \
+ git-multimail \
+ add-git-user \
+ add-git-repo \
+ add-authorized-keys
.PHONY: install
install:
- $(INSTALL) git_multimail.py $(DESTDIR)/git-multimail
- $(INSTALL) add-git-user $(DESTDIR)
- $(INSTALL) add-git-repo $(DESTDIR)
- $(INSTALL) add-authorized-keys $(DESTDIR)
+ @for i in $(SCRIPTS) ; do \
+ $(INSTALL) $$i $(DESTDIR) ; \
+ echo "Installed $$i" ; \
+ done
diff --git a/git_multimail.py b/git-multimail
index 8b58ed6..8b58ed6 100755
--- a/git_multimail.py
+++ b/git-multimail