Added git template directory to Linux standalone tarball and OSX app bundle.
authorJoey Hess <joeyh@joeyh.name>
Fri, 10 Feb 2017 17:55:54 +0000 (13:55 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 10 Feb 2017 17:55:54 +0000 (13:55 -0400)
Git does not provide a switch to find out where this directory is, and
while the git-init man page says it will always be in
/usr/share/git-core/templates, that's not the case on OSX with git
installed from homebrew. So, I used a hack taking the --man-path and
constructing a path from that. Works on both Debian and OSX at least.

CHANGELOG
Makefile
doc/bugs/could_standalone_copy_of_git_ship__47__deploy_hooks_samples_as_well_as_stock_git__63__.mdwn

index 321f98c52e33e60056035b7af94c9dbaa8815ecd..9e2791286bef0949e5c319119e1c69b46729eddd 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -47,6 +47,8 @@ git-annex (6.20170102) UNRELEASED; urgency=medium
     inneficiently; they unncessarily hashed each file twice. They have
     been improved to only hash once.
   * import: Added --reinject-duplicates.
+  * Added git template directory to Linux standalone tarball and OSX
+    app bundle.
 
  -- Joey Hess <id@joeyh.name>  Fri, 06 Jan 2017 15:22:06 -0400
 
index 2b9fabb511536972945176f153755bcecb9b19fd..cc254c438dc1d137433a9ad5b475354a4a7e9aad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -144,6 +144,7 @@ linuxstandalone-nobuild: Build/Standalone Build/LinuxMkLibs
        install -d "$(LINUXSTANDALONE_DEST)/git-core"
        (cd "$(shell git --exec-path)" && tar c .) | (cd "$(LINUXSTANDALONE_DEST)"/git-core && tar x)
        install -d "$(LINUXSTANDALONE_DEST)/templates"
+       (cd "$(shell git --man-path)"/../git-core/templates && tar c .) | (cd "$(LINUXSTANDALONE_DEST)"/templates && tar x)
        install -d "$(LINUXSTANDALONE_DEST)/magic"
        cp /usr/share/file/magic.mgc "$(LINUXSTANDALONE_DEST)/magic"
        cp /usr/share/i18n -a "$(LINUXSTANDALONE_DEST)"
@@ -205,6 +206,7 @@ osxapp: Build/Standalone Build/OSXMkLibs
 
        (cd "$(shell git --exec-path)" && tar c .) | (cd "$(OSXAPP_BASE)" && tar x)
        install -d "$(OSXAPP_BASE)/templates"
+       (cd "$(shell git --man-path)"/../git-core/templates && tar c .) | (cd "$(OSXAPP_BASE)"/templates && tar x)
        install -d "$(OSXAPP_BASE)/magic"
        if [ -e "$(OSX_MAGIC_FILE)" ]; then \
                cp "$(OSX_MAGIC_FILE)" "$(OSXAPP_BASE)/magic/magic.mgc"; \