[Commits] [SCM] themes branch, master, updated. 20221017-2-gd7a4253
mones at claws-mail.org
mones at claws-mail.org
Fri Oct 21 16:29:29 UTC 2022
The branch, master has been updated
via d7a42533377cfdc17aafab70240a422e81260da2 (commit)
from cac615c404d8f92cab2257918b2412fb34b750ba (commit)
Summary of changes:
generate | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit d7a42533377cfdc17aafab70240a422e81260da2
Author: Ricardo Mones <ricardo at mones.org>
Date: Fri Oct 21 18:29:18 2022 +0200
Include release notes in tarball
diff --git a/generate b/generate
index b44fbaf..56839c9 100755
--- a/generate
+++ b/generate
@@ -65,6 +65,12 @@ def check_replace(filename, replace, unlink=False):
else:
raise RuntimeError('file "{}" already exists'.format(filename))
+def add_extra_dist(handler, extra):
+ if len(extra) > 0:
+ handler.write('EXTRA_DIST = ')
+ handler.write(' \\\n '.join(sorted(extra)))
+ handler.write('\n\n')
+
class Theme:
@@ -125,10 +131,7 @@ class Theme:
mkf.write('dist_theme_DATA = .claws_themeinfo \\\n ')
mkf.write(' \\\n '.join(sorted(data)))
mkf.write('\n\n')
- if len(extra) > 0:
- mkf.write('EXTRA_DIST = ')
- mkf.write(' \\\n '.join(sorted(extra)))
- mkf.write('\n\n')
+ add_extra_dist(mkf, extra)
logging.info('{} created'.format(makefile))
@@ -206,7 +209,7 @@ class Generator:
configured = self.add_configure(get_git_version())
logging.info('generating {}'.format(makefile))
with open(makefile, 'w', encoding='utf-8') as mkf:
- mkf.write('EXTRA_DIST = claws-mail-themes\n\n')
+ add_extra_dist(mkf, ['claws-mail-themes', 'RELEASE_NOTES'])
mkf.write('AUTOMAKE_OPTIONS = dist-bzip2 dist-xz\n\n')
mkf.write('SUBDIRS = ')
mkf.write(' \\\n '.join(configured)) # already sorted
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail Themes
More information about the Commits
mailing list