mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 22:58:42 +02:00
codetools: updated sourcecloser example
git-svn-id: trunk@55834 -
This commit is contained in:
parent
e129389c1f
commit
5a30e17265
@ -19,8 +19,8 @@ cp -a $SrcDir $ReleaseDir
|
|||||||
|
|
||||||
# delete development files
|
# delete development files
|
||||||
rm -rf $ReleaseDir/lib $ReleaseDir/*.sh
|
rm -rf $ReleaseDir/lib $ReleaseDir/*.sh
|
||||||
find $ReleaseDir -type d -name '.svn' -d -exec rm -rf {} \;
|
find $ReleaseDir -depth -type d -name '.svn' -exec rm -rf {} \;
|
||||||
find $ReleaseDir -name '*.cache' -d -exec rm -rf {} \;
|
find $ReleaseDir -depth -name '*.cache' -exec rm -rf {} \;
|
||||||
|
|
||||||
# convert lpk, add -Ur, set "Build Manually"
|
# convert lpk, add -Ur, set "Build Manually"
|
||||||
sourcecloser $ReleaseDir/$PkgName.lpk
|
sourcecloser $ReleaseDir/$PkgName.lpk
|
||||||
|
@ -467,7 +467,7 @@ begin
|
|||||||
Changer:=CodeToolBoss.SourceChangeCache;
|
Changer:=CodeToolBoss.SourceChangeCache;
|
||||||
Changer.MainScanner:=Tool.Scanner;
|
Changer.MainScanner:=Tool.Scanner;
|
||||||
|
|
||||||
// add errors
|
// add errors, so that user cannot accidentally compile the unit
|
||||||
s:='';
|
s:='';
|
||||||
for i:=0 to FClosedSrcError.Count-1 do begin
|
for i:=0 to FClosedSrcError.Count-1 do begin
|
||||||
s:=s+'{$Error '+FClosedSrcError[i]+'}'+LineEnding;
|
s:=s+'{$Error '+FClosedSrcError[i]+'}'+LineEnding;
|
||||||
@ -547,7 +547,7 @@ begin
|
|||||||
FUnitFilenames:=TStringList.Create;
|
FUnitFilenames:=TStringList.Create;
|
||||||
FRemovePrivateSections:=true;
|
FRemovePrivateSections:=true;
|
||||||
FClosedSrcError:=TStringList.Create;
|
FClosedSrcError:=TStringList.Create;
|
||||||
FClosedSrcError.Add('This is a closed source unit. You can not compile it, it was already compiled.');
|
FClosedSrcError.Add('This is a closed source unit. You cannot compile it, it was already compiled.');
|
||||||
FClosedSrcError.Add('Probably the IDE has cleaned up and you have to unpack the zip again.');
|
FClosedSrcError.Add('Probably the IDE has cleaned up and you have to unpack the zip again.');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user