savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] [737] fsf: add more license header automation


From: iank
Subject: [Savannah-cvs] [737] fsf: add more license header automation
Date: Wed, 3 Jan 2024 05:34:14 -0500 (EST)

Revision: 737
          
http://svn.savannah.gnu.org/viewvc/?view=rev&root=administration&revision=737
Author:   iank
Date:     2024-01-03 05:34:13 -0500 (Wed, 03 Jan 2024)
Log Message:
-----------
fsf: add more license header automation

Modified Paths:
--------------
    trunk/sviki/fsf.mdwn

Modified: trunk/sviki/fsf.mdwn
===================================================================
--- trunk/sviki/fsf.mdwn        2024-01-03 10:34:01 UTC (rev 736)
+++ trunk/sviki/fsf.mdwn        2024-01-03 10:34:13 UTC (rev 737)
@@ -78,6 +78,10 @@
 Info on volunteering with the FSF tech team:
 <https://libreplanet.org/wiki/Group:FSF:Tech_Team_Volunteers>
 
+## Copyright header automation (new contributors can ignore this)
+
+### Adding header to new files
+
 ```
 # Function to add standard copyright header to file, easier than
 # copy/pasting. If you copy this and don't work for FSF, change the
@@ -109,3 +113,11 @@
 done
 }
 ```
+
+### Changing copyright year on all the fsf files
+
+from root of the repo, run
+
+```
+sed -i --follow-symlinks "4s/(C) [2-9][0-9][0-9][0-9] /(C) $(date +%Y) /" 
$(find fsf -type f) fsf.mdwn
+```




reply via email to

[Prev in Thread] Current Thread [Next in Thread]