source: pacpusframework/trunk/scripts/update-license.sed@ 128

Last change on this file since 128 was 74, checked in by Marek Kurdej, 12 years ago

Added: scripts for automated license updating.
The license should be between lines with %pacpus:license{ and %pacpus:license}.
See Pacpus/kernel/Log.h for an example.

File size: 359 bytes
RevLine 
[74]1:writefromstart
20,/%pacpus:license{/ {
3 p # print line
4 $b exit # exit if the license not found (branch to exit if on on the last line)
5}
6
7# put license file after the line with %pacpus:license{
8/%pacpus:license{/ {
9 r ../LICENSE-header.txt
10}
11
12:writetillend
13/%pacpus:license}/,$ {
14 p # print line
15}
16
17:exit
Note: See TracBrowser for help on using the repository browser.