From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: cmogstored-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 3C0CC202EF for ; Wed, 11 Nov 2015 22:04:04 +0000 (UTC) From: Eric Wong To: cmogstored-public@bogomips.org Subject: [PATCH] doc: publish examples directory to website Date: Wed, 11 Nov 2015 22:04:04 +0000 Message-Id: <20151111220404.23133-1-e@80x24.org> List-Id: This might improve visibility of these scripts for use with systemd. --- Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index dc49d26..f78ff76 100644 --- a/Makefile.am +++ b/Makefile.am @@ -201,11 +201,13 @@ WWW_DOC = README AUTHORS NEWS.atom.xml INSTALL $(extra_doc) NEWS.atom.xml: configure.ac $(AM_V_GEN)$(RAKE) -sq news_atom > $@.$$$$ && mv $@.$$$$ $@ publish: NEWS.atom.xml NEWS ChangeLog - mkdir -p www/ + mkdir -p www/examples/ # n.b. git set-file-times is non-standard, but distributed with rsync -cd $(top_srcdir) && git set-file-times $(WWW_DOC) $(INSTALL_DATA) -p $(addprefix $(top_srcdir)/,$(WWW_DOC)) www/ - set -e && cd www && for i in $(WWW_DOC); do \ + $(INSTALL_DATA) -p $(addprefix $(top_srcdir)/,$(examples)) \ + www/examples/ + set -e && cd www && for i in $(WWW_DOC) $(examples); do \ $(GZIP) < $$i > $$i.gz; \ test -s $$i.gz; \ touch -r $$i $$i.gz; \ @@ -215,6 +217,7 @@ publish: NEWS.atom.xml NEWS ChangeLog .PHONY: publish tap_support = tapset/all.stp tapset/http_access_log.gawk tapset/ioq_wait.awk +examples := examples/cmogstored.socket examples/cmogstored@.service EXTRA_DIST = $(RB_TESTS) $(RL_CGEN) $(RL_ALL) $(PERL_TESTS) $(extra_doc) \ .gitignore Rakefile autogen.sh GNUmakefile bsd/README doc m4 \ @@ -226,7 +229,7 @@ EXTRA_DIST = $(RB_TESTS) $(RL_CGEN) $(RL_ALL) $(PERL_TESTS) $(extra_doc) \ $(top_srcdir)/.version $(top_srcdir)/.gnulib-version \ test/valgrind.supp nostd/README \ $(tap_support) \ - examples/cmogstored.socket examples/cmogstored@.service + $(examples) TESTS_ENVIRONMENT = PATH=$(top_builddir):$$PATH TMPDIR=$(test_tmpdir) -- EW