source: pacpusframework/branches/0.0.x/scripts/change-all-licenses.bat

Last change on this file 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: 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.