msgthr user+dev discussion/patches/pulls/bugs/help
 help / Atom feed
* [PATCH] packaging: include NEWS file in RubyGem
@ 2018-05-01 20:41 Eric Wong
  0 siblings, 0 replies; 1+ messages 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	[flat|nested] 1+ messages in thread

only message in thread, back to index

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

msgthr user+dev discussion/patches/pulls/bugs/help

Archives are clonable: git clone --mirror https://80x24.org/msgthr-public

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.msgthr
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.msgthr

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox