From 72ad4b8c436a0884653a2cf7d232f0aefb9518d7 Mon Sep 17 00:00:00 2001 From: Thierry Andriamirado Date: Thu, 6 Aug 2015 00:26:48 +0300 Subject: [PATCH 1/2] Made LazPackager compilable again with fpc & Lazarus stable versions. (2.6.4 and 1.4.2 * "Tool.ShowAllOutput = true" commented (err: ID no member) * Tool.Filename -> Tool.Executable ("Filename" is deprecated) I let those comments in src code ATM, so upstream could easily find them if needed. * Incremented the pkg release version. 1.0.1.1 now. --- lazpackager.lpk | 14 ++++---------- lazpackagerbase.pas | 5 +++-- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/lazpackager.lpk b/lazpackager.lpk index 971fa2e..2e6b7e9 100644 --- a/lazpackager.lpk +++ b/lazpackager.lpk @@ -1,19 +1,14 @@ - + + - - - - - - - + - + @@ -58,7 +53,6 @@ writing to the Free Software Foundation, Inc., 59 Temple Place - Suite - diff --git a/lazpackagerbase.pas b/lazpackagerbase.pas index 0e4ef96..f0ddd57 100644 --- a/lazpackagerbase.pas +++ b/lazpackagerbase.pas @@ -266,10 +266,11 @@ procedure TPackagerBase.RunBuildScript(Data: PtrInt); Tool: TIDEExternalToolOptions; begin Tool := TIDEExternalToolOptions.Create; - Tool.Filename := GetBuildScriptInterpreter; +// Tool.Filename := GetBuildScriptInterpreter; // Filename: deprecated + Tool.Executable := GetBuildScriptInterpreter; Tool.CmdLineParams := GetBuildScriptName; Tool.WorkingDirectory := GetProjectPathAbsolute; - Tool.ShowAllOutput := True; +// Tool.ShowAllOutput := True; // ShowAllOutput: "Error: ID no member" RunExternalTool(Tool); Tool.Free; Self.Free; From 84dca7fea57b65a7e770b36dedea3763bdf41e9a Mon Sep 17 00:00:00 2001 From: Thierry Andriamirado Date: Wed, 20 Feb 2019 19:01:25 +0300 Subject: [PATCH 2/2] Made LazPackager compilable with Lazarus 2.0: now uses LazStringUtils and LazFileUtils because of ConvertLineEndings etc.. --- .gitignore | 2 ++ README.md | 7 +++++++ lazpackager.lpk | 2 +- lazpackagerbase.pas | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a65b417..6da0002 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ lib +backup +doc-devel diff --git a/README.md b/README.md index 8fdf2aa..b36d191 100644 --- a/README.md +++ b/README.md @@ -51,3 +51,10 @@ Does it work yet? ----------------- 95%. Should work for most simple projects out of the box and with a few tweaks to the templates for all others too. + +NB by Thierry Andriamirado: +--------------------------- +I concocted and delivered this maintenance version for practical reasons, +so that LazPackager continues to work as Lazarus evolves, and why not, to make +it evolve. Thanks go to Bernd Kreuss for this useful project. + diff --git a/lazpackager.lpk b/lazpackager.lpk index 2e6b7e9..4b2746a 100644 --- a/lazpackager.lpk +++ b/lazpackager.lpk @@ -25,7 +25,7 @@ A copy of the GNU General Public License is available on the World Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also obtain it by writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA."/> - + diff --git a/lazpackagerbase.pas b/lazpackagerbase.pas index f0ddd57..3a46993 100644 --- a/lazpackagerbase.pas +++ b/lazpackagerbase.pas @@ -87,7 +87,7 @@ implementation sysutils, Forms, LCLProc, - FileUtil, + FileUtil, LazStringUtils, LazFileUtils, LazIDEIntf, ProjectResourcesIntf, MacroIntf,