From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brandon Invergo Subject: Re: Synchronizing synopses with the Womb Date: Sat, 20 Apr 2013 12:58:04 +0200 Message-ID: <8761zhsc3n.fsf@naga.invergo.net> References: <201304182239.r3IMdF0P032258@freefriends.org> <87sj2myh5w.fsf@gnu.org> <87mwsusicm.fsf@naga.invergo.net> <87a9otd17m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTVUj-0008Uh-N6 for bug-guix@gnu.org; Sat, 20 Apr 2013 06:58:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTVUh-0005FM-0B for bug-guix@gnu.org; Sat, 20 Apr 2013 06:58:13 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTVUg-0005FI-Sr for bug-guix@gnu.org; Sat, 20 Apr 2013 06:58:10 -0400 In-Reply-To: <87a9otd17m.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sat, 20 Apr 2013 11:02:21 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org Cc: Karl Berry --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > Is there any easy way to extract long descriptions from GSRC? There > could be a script in Guix, similar to what we have for the Womb. I > suspect it might be a bit more work, though. I took inspiration from you guys and made a way to output package information in the Recutils recfile format. An entire package manifest in recfile format can be made with "make manifest" in the top-level GSRC directory (it's also included by default in the last distribution, gsrc-2013-04-06.tar.gz, but I recommend checking out the bzr repo).=3D20 Once MANIFEST.rec has been built, it is simple to get the info with recsel. The field "Garname" contains the simple one-word package name (always the same name used in forming URLs on the GNU web and FTP sites and, i.e. at http://www.gnu.org/software/$Garname). The long description is contained in the "Blurb" field.=3D20 $ recsel -e "Garname =3D3D 'hello'" -P "Blurb" MANIFEST.rec=3D20 GNU Hello prints the message "Hello, world!" and then exits. It=3D20 serves as an example of standard GNU coding practices. As such, it supports command-line arguments, multiple languages, and so on. $ recsel -e "Garname =3D3D 'src-highlite'" -P "Blurb" MANIFEST.rec Source-highlight reads in a source code file and produces an output file in which the keywords are highlighted in different colors to designate their syntactic role. It supports over 150 different languages and it can output to 8 different formats, including HTML, LaTeX and ODF. It can also output to ANSI color escape sequences, allowing, for example, GNU less to show highlighted source code. Of course, I welcome any suggested changes or corrections to the descriptions. As you can imagine, doing a marathon of describing hundreds of GNU packages alone might have led to some poor wording in places.=3D20 I'll get to work on changing the short descriptions to match those of Womb... =2D-=20 Brandon Invergo http://brandon.invergo.net --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJRcnS/AAoJEARu3ubrerdNtzEH/jpqoaCpAhZ9kJONmWydOTnT 2A0aa3dzV7Cb/60w7HDg9n9s9iDh4skDS//7Dc/KeEq3vSGMRxgPdNN8RcgwaXjx TXZXlEYdmsXlkblbTAqSOB/W3xMq1T/7967XEXU5UNZYCCOTpYaf6xusmbBfcjEl xhHzKdcZA9QupJG0RPAE8E/YuQYpDuhq2bTV/EcQXak/7H8z+jGwxVt3INEFXNVn p3pIqwysrNfelVSV9TxVvsrprb00jhPm9oAEs/iziC02XwcgF5KClOk2IpEPqCTh VfNOPnK5VRluz7mURSz5ui7B9AivkP5ozlsYVTIazYuTsSLQ4W96RkZkP2oOiw8= =2n5x -----END PGP SIGNATURE----- --=-=-=--