Best practice for displaying license?

LI Xin delphij at delphij.net
Wed Oct 25 07:44:45 UTC 2006


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?

Cheers,
-- 
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20061025/fafc9462/signature.pgp


More information about the freebsd-hackers mailing list