Skip to content

Instantly share code, notes, and snippets.

@ilg-ul
Last active August 14, 2024 00:07
Show Gist options
  • Save ilg-ul/aa6de96c993719667f07 to your computer and use it in GitHub Desktop.
Save ilg-ul/aa6de96c993719667f07 to your computer and use it in GitHub Desktop.
C header with GPL license text.
/*
* This file is part of the XXX distribution (https://github.com/xxxx or http://xxx.github.io).
* Copyright (c) 2015 Liviu Ionescu.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@synthels
Copy link

<3

@sportshead
Copy link

+1

@ilg-ul
Copy link
Author

ilg-ul commented Mar 26, 2020

Come on, don't mock on this file, I used it with copy/paste when I had to contribute to GPL projects.

@mansoormemon
Copy link

Thanks dude!

@tacerus
Copy link

tacerus commented Aug 14, 2024

Here is a variant with the v3-or-later text (from gpl-3.0.txt):

/*
 * The foo application.
 *
 * Copyright (C) 2024 Bugs Bunny <mail@example.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment