gsrc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gsrc-commit] /srv/bzr/gsrc/trunk r2286: add html package list target


From: Brandon Invergo
Subject: [Gsrc-commit] /srv/bzr/gsrc/trunk r2286: add html package list target
Date: Fri, 12 Apr 2013 22:43:36 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 2286
committer: Brandon Invergo <address@hidden>
branch nick: trunk
timestamp: Fri 2013-04-12 22:43:36 +0200
message:
  add html package list target
added:
  util/templates/package-list.html.m4
  util/templates/package.html.templ
modified:
  GNUmakefile.am
=== modified file 'GNUmakefile.am'
--- a/GNUmakefile.am    2013-04-01 20:28:56 +0000
+++ b/GNUmakefile.am    2013-04-12 20:43:36 +0000
@@ -9,12 +9,17 @@
 GNUSTEP_PACKAGES = $(call find_packages, gnustep/*/)
 ALPHA_PACKAGES = $(call find_packages, alpha/*/)
 
-PACKAGES ?= $(GNU_PACKAGES) $(GNOME_PACKAGES) $(GNUSTEP_PACKAGES) 
$(ALPHA_PACKAGES)
+PACKAGES ?= $(GNU_PACKAGES) $(GNOME_PACKAGES) $(GNUSTEP_PACKAGES) 
 PAGER ?= less
 PAGER_OPTS = "-r"
 
 FROM ?= yesterday
 TO ?= today
+HTML_LIST_TEMPLATE = util/templates/package-list.html.m4
+HTML_PKG_TEMPLATE = util/templates/package.html.templ
+RECFMT = @RECFMT@
+RECSEL = @RECSEL@
+DATE = $(shell date +"%Y-%m-%d %H:%M")
 
 all:
        @fail= failcom='exit 1'; \
@@ -36,7 +41,7 @@
 help: 
        @$(DISPLAY) $(DOC)/help.txt
 
-package-list:
+ppackage-list:
        @for i in $(PACKAGES)  ; do \
                if [ -d $$i ] ; then $(MAKE) -sC $$i pkg-info-curt || eval 
$$failcom;  fi \
        done | $(PAGER) $(PAGER_OPTS)
@@ -62,6 +67,8 @@
        nnew=`printf "$$new\n" | wc -l`; \
        echo "New packages: $$nnew"; printf "$$new\n" | sort | sed -r -e 's/add 
(.+) at ([0-9\.a-z]+).*/\1 \(\2\)/g'
 
+manifest-html: manifest package-list.html
+
 manifest: MANIFEST.rec
 
 MANIFEST.rec:
@@ -81,6 +88,14 @@
                fi \
        done
 
+package-list.html:
+       printf "define(\`PACKAGE_LIST\', \`" > package-list.tmp
+       echo "`$(RECSEL) MANIFEST.rec | $(RECFMT) -f $(HTML_PKG_TEMPLATE)`" >> 
package-list.tmp
+       echo "\')" >> package-list.tmp
+               m4 -D UPDATE_DATE="$(DATE)" package-list.tmp \
+               $(HTML_LIST_TEMPLATE) > $@
+       rm package-list.tmp
+
 dist-hook:
        rm -rf `find $(distdir) -name work -o -name cookies -o -name download 
-o -name logs -o -name .update-pending -o -name .update-timestamp -o -name 
.commit -o -name logmsg -o -name *~`
 

=== added file 'util/templates/package-list.html.m4'
--- a/util/templates/package-list.html.m4       1970-01-01 00:00:00 +0000
+++ b/util/templates/package-list.html.m4       2013-04-12 20:43:36 +0000
@@ -0,0 +1,110 @@
+<!-- Parent-Version: 1.52 -->
+
+<!-- This is the template document for GNU web pages.  We use
+     server side includes (#include) for common elements, for
+     instance, the very first line of the file.  If you're reading
+     this in its expanded form, you can retrieve the original source,
+     with the SSI statements intact, from
+     
http://web.cvs.savannah.gnu.org/viewvc/*checkout*/www/server/standards/boilerplate.html?root=www&content-type=text%2Fplain
+-->
+
+<!-- Instructions for adapting this boilerplate to a new project: -->
+
+<!-- 1. In the line above starting "Parent-Version:", remove the
+        "$Revision...$" from around the revision number,
+        leaving just Parent-Version: and the number. -->
+
+<!-- 2. Replace "baz" with the name of your project.
+        You should be able to do this with search and replace;
+        making sure that the search is case insensitive and
+        that the case of the replacement matches the case
+        of the string found. In Emacs, query-replace will do this
+        when case-fold-search and case-replace are both non-nil
+        and both search and replacement string are given in lower case. -->
+
+<!-- 3. Of course update the actual information according to your project,
+        such as mailing lists, project locations, and maintainer name.  -->
+
+<!-- 4. You can use the patch-from-parent script to semi-automate
+        merging future changes to the boilerplate with your file:
+        
http://web.cvs.savannah.gnu.org/viewvc/*checkout*/www/server/standards/patch-from-parent?root=www&content-type=text%2Fplain
+-->
+
+<!--#include virtual="/server/header.html" -->
+<title>GSRC Package List - GNU Project - Free Software Foundation</title>
+<!--#include virtual="/server/banner.html" -->
+<h2>GSRC Package List</h2>
+
+<p><b>Updated: UPDATE_DATE</b></p>
+
+<table>
+  <tr>
+    <th>GSRC Name</th>
+    <th>Name</th>
+    <th>Description</th>
+    <th>Version</th>
+  </tr>
+PACKAGE_LIST
+</table>
+
+<!-- If needed, change the copyright block at the bottom. In general,
+     all pages on the GNU web server should have the section about
+     verbatim copying.  Please do NOT remove this without talking
+     with the webmasters first.
+     Please make sure the copyright date is consistent with the document
+     and that it is like this: "2001, 2002", not this: "2001-2002". -->
+</div><!-- for id="content", starts in the include above -->
+<!--#include virtual="/server/footer.html" -->
+<div id="footer">
+
+<p>Please send general FSF &amp; GNU inquiries to
+<a href="mailto:address@hidden";>&lt;address@hidden&gt;</a>.
+There are also <a href="/contact/">other ways to contact</a>
+the FSF.<br />
+Please send broken links and other corrections or suggestions to
+<a href="mailto:address@hidden";>&lt;address@hidden&gt;</a>.</p>
+
+<p>Please see the <a
+href="/server/standards/README.translations.html">Translations
+README</a> for information on coordinating and submitting translations
+of this article.</p>
+
+<p>Copyright &copy; 2011 Free Software Foundation, Inc.</p>
+
+<p>Verbatim copying and distribution of this entire article are
+permitted worldwide, without royalty, in any medium, provided this
+notice, and the copyright notice, are preserved.</p>
+
+<p>Updated:
+<!-- timestamp start -->
+$Date: 2012/04/09 18:51:19 $
+<!-- timestamp end -->
+</p>
+</div>
+
+<div id="translations">
+<h4>Translations of this page</h4>
+
+<!-- Please keep this list alphabetical by language code.
+     Comment what the language is for each type, i.e. de is German.
+     Write the language name in its own language (Deutsch) in the text.
+     If you add a new language here, please
+     advise address@hidden and add it to
+      - /home/www/html/server/standards/README.translations.html
+      - one of the lists under the section "Translations Underway"
+      - if there is a translation team, you also have to add an alias
+      to mail.gnu.org:/com/mailer/aliases
+     Please also check you have the language code right; see:
+     http://www.loc.gov/standards/iso639-2/php/code_list.php
+     If the 2-letter ISO 639-1 code is not available,
+     use the 3-letter ISO 639-2.
+     Please use W3C normative character entities. -->
+
+<ul class="translations-list">
+<!-- English -->
+<li><a href="/server/standards/boilerplate.html">English</a>&nbsp;[en]</li>
+</ul>
+</div>
+</div>
+</body>
+</html>

=== added file 'util/templates/package.html.templ'
--- a/util/templates/package.html.templ 1970-01-01 00:00:00 +0000
+++ b/util/templates/package.html.templ 2013-04-12 20:43:36 +0000
@@ -0,0 +1,6 @@
+  <tr>
+    <td>{{Directory}}/{{Garname}}</td>
+    <td><a href="{{Home_URL}}">{{Name}}</a></td>
+    <td>{{Blurb = "" ? Description : Blurb}}</td>
+    <td>{{Version}}</td>
+  </tr>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]