From: Catalin Marinas Date: Thu, 28 Jul 2005 15:13:56 +0000 (+0100) Subject: Install the template files as well X-Git-Tag: v0.5~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/8754986f0087dd6aa95c4816a509bde12044943b Install the template files as well Signed-off-by: Catalin Marinas --- diff --git a/MANIFEST.in b/MANIFEST.in index 587c4d7..17d28a7 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ include README MANIFEST.in AUTHORS COPYING INSTALL ChangeLog TODO stgitrc include examples/*.tmpl +include templates/*.tmpl diff --git a/setup.py b/setup.py index fbfca96..2e5dd7c 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +import glob from distutils.core import setup from stgit.version import version @@ -14,5 +15,7 @@ setup(name = 'stgit', long_description = 'Push/pop utility on top of GIT', scripts = ['stg', 'gitmergeonefile.py'], packages = ['stgit', 'stgit.commands'], - data_files = [('/etc', ['stgitrc'])], + data_files = [('/etc', ['stgitrc']), + ('share/stgit/templates', glob.glob('templates/*.tmpl')), + ('share/stgit/examples', glob.glob('examples/*.tmpl'))] ) diff --git a/examples/patchexport.tmpl b/templates/patchexport.tmpl similarity index 100% rename from examples/patchexport.tmpl rename to templates/patchexport.tmpl diff --git a/examples/patchmail.tmpl b/templates/patchmail.tmpl similarity index 100% rename from examples/patchmail.tmpl rename to templates/patchmail.tmpl