diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 14:38:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 14:38:35 +1200 |
commit | 2df4949713ee433a158ad310b51613ce7cd66099 (patch) | |
tree | 294962bc5e0d09ab01ee31a0994e216724c14a02 | |
parent | Remove mapping loop from normal CTRL-L in vimrc (diff) | |
download | dotfiles-2df4949713ee433a158ad310b51613ce7cd66099.tar.gz dotfiles-2df4949713ee433a158ad310b51613ce7cd66099.zip |
Add first attempt at Git template dir
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 14 | ||||
-rw-r--r-- | git/template/description | 1 | ||||
-rw-r--r-- | git/template/hooks/post-update.sh | 4 |
4 files changed, 18 insertions, 2 deletions
@@ -170,6 +170,7 @@ /games/zs /git/gitconfig /git/gitconfig.m4 +/git/template/hooks/post-update /gnupg/gpg.conf /gnupg/gpg.conf.m4 /include/mktd.m4 @@ -261,7 +261,9 @@ GAMES = games/aaf \ games/xyzzy \ games/zs -all: $(BINS) git/gitconfig gnupg/gpg.conf +GIT_TEMPLATE_HOOKS = git/template/hooks/post-update + +all: $(BINS) git/gitconfig $(GIT_TEMPLATE_HOOKS) gnupg/gpg.conf clean distclean: rm -f -- \ @@ -269,6 +271,7 @@ clean distclean: $(BINS_M4) \ $(BINS_SH) \ $(GAMES) \ + $(GIT_TEMPLATE_HOOKS) \ dillo/dillorc \ dillo/dillorc.m4 \ git/gitconfig \ @@ -414,8 +417,15 @@ install-games-man: mkdir -p -- $(HOME)/.local/share/man/man6 cp -p -- man/man6/*.6df $(HOME)/.local/share/man/man6 -install-git: git/gitconfig +install-git: git/gitconfig $(GIT_TEMPLATE_HOOKS) cp -p -- git/gitconfig $(HOME)/.gitconfig + find git/template \ + -type d -exec sh -c 'mkdir -p -- \ + $(HOME)/.git-template"$${1#git/template}"' \ + _ {} \; \ + -o -exec sh -c 'cp -p -- "$$1" \ + $(HOME)/.git-template"$${1#git/template}"' \ + _ {} \; install-gnupg: gnupg/gpg.conf mkdir -m 0700 -p -- $(HOME)/.gnupg diff --git a/git/template/description b/git/template/description new file mode 100644 index 00000000..9e2d17e8 --- /dev/null +++ b/git/template/description @@ -0,0 +1 @@ +I have no description, and I must scream. diff --git a/git/template/hooks/post-update.sh b/git/template/hooks/post-update.sh new file mode 100644 index 00000000..7199a513 --- /dev/null +++ b/git/template/hooks/post-update.sh @@ -0,0 +1,4 @@ +bare=$(git config core.bare) +case $bare in + true) git update-server-info ;; +esac |