From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 25 07:44:44 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAF1716A416 for ; Wed, 25 Oct 2006 07:44:44 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E8E443D60 for ; Wed, 25 Oct 2006 07:44:43 +0000 (GMT) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 312C0EB1278 for ; Wed, 25 Oct 2006 15:44:42 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id 36ABaNLQXaan for ; Wed, 25 Oct 2006 15:44:36 +0800 (CST) Received: from [10.217.12.47] (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 7B8A0EB0EF2 for ; Wed, 25 Oct 2006 15:44:35 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to: subject:x-enigmail-version:content-type; b=AgcDvsCSuoWRew/fmCz0e0y36bCnlw0dqnf7qr/vvvkbO7iaSDeWDceVuIyhZPLHN aY0UO/EEK/glFuaVFjamw== Message-ID: <453F15C0.70009@delphij.net> Date: Wed, 25 Oct 2006 15:44:00 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig6237A3AD0DBBEB869E8D2BAD" Cc: Subject: Best practice for displaying license? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 07:44:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6237A3AD0DBBEB869E8D2BAD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, folks, I am thinking about whether we can use a better way to display license for a BSD licensed software. Currently I have copy and pasted the copyright as a static string constant, but that means that we have to duplicate the text, like this: static const char license[] =3D " * Copyright (c) [year] [your name]\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n [...] * SUCH DAMAGE.\n " Is there some better way not to include so much duplicated text? Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig6237A3AD0DBBEB869E8D2BAD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFPxXAOfuToMruuMARA6uRAJ9VFlwkpiGCuxauzzjc+I2WGCKQqQCfexxt vT9brZigX9FwCLHvdSt9U5k= =FXtI -----END PGP SIGNATURE----- --------------enig6237A3AD0DBBEB869E8D2BAD--