Last change
on this file since 185 was 89, checked in by morasjul, 12 years ago |
PACPUS 2.0 Beta deployed in new branch
Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support
|
-
Property svn:executable
set to
*
|
File size:
606 bytes
|
Rev | Line | |
---|
[89] | 1 | @echo off
|
---|
| 2 |
|
---|
| 3 | :: You have to install `sed` first!
|
---|
| 4 |
|
---|
| 5 | :init
|
---|
| 6 | :: get full path of the file
|
---|
| 7 | set FILE=%~df1
|
---|
| 8 | set SCRIPTS_DIR=%2
|
---|
| 9 | set MV=move
|
---|
| 10 |
|
---|
| 11 | ::echo %FILE%
|
---|
| 12 | ::echo %LICENSE_HEADER_FILE%
|
---|
| 13 |
|
---|
| 14 | :find
|
---|
| 15 | :: remove license
|
---|
| 16 | :: sed '/^%pacpus:license{/,/^%pacpuse:license}/d' %FILE%
|
---|
| 17 |
|
---|
| 18 | sed -nf %SCRIPTS_DIR%\update-license.sed "%FILE%" > update-license.tmp
|
---|
| 19 | %MV% update-license.tmp "%FILE%"
|
---|
| 20 |
|
---|
| 21 | :: print lines from begin of file till begin of license
|
---|
| 22 | ::sed -n '0,/^%pacpus:license{/ p' %FILE%
|
---|
| 23 | :: print new license
|
---|
| 24 |
|
---|
| 25 | :: print lines from end of license till end of file
|
---|
| 26 | ::sed -n '/^%pacpus:license}/,$ p' %FILE%
|
---|
Note:
See
TracBrowser
for help on using the repository browser.