#update #year #gpl #license #terminal

app year_update

Used to update the date of license files in GPL-v3 projects

4 stable releases

1.2.0 Feb 25, 2024
1.1.1 Jan 29, 2024
1.1.0 Jan 11, 2024
1.0.0 Jan 8, 2024

#364 in Development tools

GPL-3.0 license

15KB
96 lines

Year update

Used to update the date of license files in GPL-v3 projects.

Usage: <last_year> <current_year>

Update

year_update update

Example

year_update 2023 2024

Go to the directory where you want to change the license date and then add the year you want to change to the new year. Then, every single file with the license advice will be update if it follow the this requirements

  • The license is in the top
  • License look like this
/***************************************************************************************
 *   main.rs  --  This file is part of foo.                                            *
 *                                                                                     *
 *   Copyright (C) 2024 Me                                                             *
 *                                                                                     *
 *   foo 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.                                            *
 *                                                                                     *
 *   foo 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/.               *
 *                                                                                     *
 **************************************************************************************/

No runtime deps