From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 7 04:54:21 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 3F82C16A412 for ; Tue, 7 Nov 2006 04:54:21 +0000 (UTC) (envelope-from b3k@mail.ru) Received: from mx5.mail.ru (mx5.mail.ru [194.67.23.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91E8C43D79 for ; Tue, 7 Nov 2006 04:54:08 +0000 (GMT) (envelope-from b3k@mail.ru) Received: from [212.57.150.10] (port=31859 helo=[192.168.0.22]) by mx5.mail.ru with asmtp id 1GhIyM-000LwU-00 for freebsd-hackers@freebsd.org; Tue, 07 Nov 2006 07:54:06 +0300 From: Elisey Savateev To: freebsd-hackers@freebsd.org Date: Tue, 7 Nov 2006 09:53:35 +0500 User-Agent: KMail/1.9.4 References: <453F15C0.70009@delphij.net> In-Reply-To: <453F15C0.70009@delphij.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1441938.a0TNfDeDSi"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200611070953.59866.b3k@mail.ru> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: 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: Tue, 07 Nov 2006 04:54:21 -0000 --nextPart1441938.a0TNfDeDSi Content-Type: multipart/mixed; boundary="Boundary-01=_QFBUFiYltlFWO0l" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_QFBUFiYltlFWO0l Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit Content-Disposition: inline > 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[] = " * 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? Look at my way to include usage text. --- Elisey Savateev --Boundary-01=_QFBUFiYltlFWO0l-- --nextPart1441938.a0TNfDeDSi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFUBFnraHIUFMyansRAiZkAKCmEI/S1PDzAJOmKHVS81TYhrV3qgCg55kq Dq6qv6WBwqBQZtSuxpt/0VI= =B+fr -----END PGP SIGNATURE----- --nextPart1441938.a0TNfDeDSi--