msgthr user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] packaging: include NEWS file in RubyGem
@ 2018-05-01 20:41 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2018-05-01 20:41 UTC (permalink / raw)
  To: msgthr-public

---
 GNUmakefile    | 5 +++--
 msgthr.gemspec | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index cc47f6e..8055f9f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -33,7 +33,7 @@ gem: $(pkggem)
 install-gem: $(pkggem)
 	gem install --local $(CURDIR)/$<
 
-$(pkggem): .manifest
+$(pkggem): .manifest NEWS
 	VERSION=$(VERSION) gem build $(pkg).gemspec
 	mkdir -p pkg
 	mv $(@F) $@
@@ -47,12 +47,13 @@ pkg_extra :=
 package: $(pkggem)
 
 NEWS: .olddoc.yml
-	$(OLDDOC) prepare
+	$(OLDDOC) prepare || echo 'See https://80x24.org/msgthr/NEWS' >$@
 LATEST: NEWS
 
 doc:: .document .olddoc.yml
 	-find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
 	$(RM) -r doc
+	$(OLDDOC) prepare
 	$(RDOC) -f oldweb
 
 # this requires GNU coreutils variants
diff --git a/msgthr.gemspec b/msgthr.gemspec
index ed043d6..71f3c18 100644
--- a/msgthr.gemspec
+++ b/msgthr.gemspec
@@ -3,6 +3,7 @@
 
 Gem::Specification.new do |s|
   manifest = File.read('.manifest').split(/\n/)
+  manifest << 'NEWS' if File.exist?('NEWS')
   s.name = %q{msgthr}
   s.version = ENV['VERSION'] || '1.2.1'
   s.authors = ['msgthr hackers']
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-01 20:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-01 20:41 [PATCH] packaging: include NEWS file in RubyGem Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/msgthr.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).