Skip to content

Commit

Permalink
Merge pull request #4 from zamronypj/hotfix-1.5.0-fix-http-config
Browse files Browse the repository at this point in the history
fix missing TMhdSvrConfig when project is cloned
  • Loading branch information
zamronypj authored Oct 31, 2020
2 parents bd5b043 + 17de0e3 commit b083624
Showing 1 changed file with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ interface

(*!--------------------------------------
* Task that create web application project
* compiler config files and enable conditional
* define -DLIBMICROHTTPD if current command is
* compiler config files and enable conditional
* define -DLIBMICROHTTPD if current command is
* --project-mhd
*
* @author Zamrony P. Juhara <zamronypj@yahoo.com>
Expand All @@ -38,7 +38,7 @@ TCreateMhdCompilerConfigsTask = class(TDecoratorCreateCompilerConfigsTask)

implementation

uses
uses

SysUtils;

Expand All @@ -47,14 +47,23 @@ implementation
const longOpt : shortstring
) : ITask;
begin
if (longOpt = 'project-mhd') then
if (longOpt = 'project-mhd') then
begin
fWriter.write(
baseDirectory + '/build.cfg',
StringReplace(
fReader.read(baseDirectory + '/build.cfg'),
'#-dLIBMICROHTTPD',
'-dLIBMICROHTTPD',
fReader.read(baseDirectory + '/build.cfg'),
'#-dLIBMICROHTTPD',
'-dLIBMICROHTTPD',
[rfReplaceAll]
)
);
fWriter.write(
baseDirectory + '/build.cfg.sample',
StringReplace(
fReader.read(baseDirectory + '/build.cfg.sample'),
'#-dLIBMICROHTTPD',
'-dLIBMICROHTTPD',
[rfReplaceAll]
)
);
Expand Down

0 comments on commit b083624

Please sign in to comment.