year_update

Crates.ioyear_update
lib.rsyear_update
version1.2.0
sourcesrc
created_at2024-01-08 13:35:16.379542
updated_at2024-02-25 12:06:32.642229
descriptionUsed to update the date of license files in GPL-v3 projects
homepage
repositoryhttps://gitlab.com/mateolafalce/year_update
max_upload_size
id1092540
size46,155
Mateo Lafalce (mateolafalce)

documentation

README

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/.               *
 *                                                                                     *
 **************************************************************************************/
Commit count: 0

cargo fmt