source: pacpusframework/trunk/scripts/change-all-licenses.bat@ 105

Last change on this file since 105 was 74, checked in by Marek Kurdej, 11 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: 468 bytes
Line 
1@echo off
2
3:parameters
4set SCRIPTS_DIR=%CD%
5set DIRECTORIES=..\include ..\src
6set FILES_TO_UPDATE=*.h *.c *.hpp *.cpp *.hxx *.cxx *.cc *.tcc
7
8:scan
9:: for all directories
10for %%D in (%DIRECTORIES%) do (
11 ::echo %%D
12 cd %SCRIPTS_DIR%
13 cd %%D
14 :: find source files
15 :: update each file
16 for /R %%E in (%FILES_TO_UPDATE%) do (
17 "%SCRIPTS_DIR%\update-license.bat" "%%E" "%SCRIPTS_DIR%"
18 )
19)
20
21:exit
22cd %SCRIPTS_DIR%
23pause
Note: See TracBrowser for help on using the repository browser.