Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
File write improvements and also build increment
Browse files Browse the repository at this point in the history
  • Loading branch information
worksofliam committed Nov 22, 2017
1 parent 669456d commit 809d90a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ILEditor/ILEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<PublisherName>Works Of Barry</PublisherName>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
<ApplicationRevision>27</ApplicationRevision>
<ApplicationRevision>28</ApplicationRevision>
<ApplicationVersion>2.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>true</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
Expand Down
19 changes: 14 additions & 5 deletions ILEditor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,20 @@ static void Main()
Directory.CreateDirectory(SOURCEDIR);
Directory.CreateDirectory(SYNTAXDIR);

File.WriteAllText(Program.SYNTAXDIR + "RPG.xml", Properties.Resources.RPGSyntax);
File.WriteAllText(Program.SYNTAXDIR + "SQL.xml", Properties.Resources.SQLSyntax);
File.WriteAllText(Program.SYNTAXDIR + "CPP.xml", Properties.Resources.CPPSyntax);
File.WriteAllText(Program.SYNTAXDIR + "CL.xml", Properties.Resources.CLSyntax);
File.WriteAllText(Program.SYNTAXDIR + "COBOL.xml", Properties.Resources.COBOLSyntax);
if (!File.Exists(Program.SYNTAXDIR + "RPG.xml"))
File.WriteAllText(Program.SYNTAXDIR + "RPG.xml", Properties.Resources.RPGSyntax);

if (!File.Exists(Program.SYNTAXDIR + "SQL.xml"))
File.WriteAllText(Program.SYNTAXDIR + "SQL.xml", Properties.Resources.SQLSyntax);

if (!File.Exists(Program.SYNTAXDIR + "CPP.xml"))
File.WriteAllText(Program.SYNTAXDIR + "CPP.xml", Properties.Resources.CPPSyntax);

if (!File.Exists(Program.SYNTAXDIR + "CL.xml"))
File.WriteAllText(Program.SYNTAXDIR + "CL.xml", Properties.Resources.CLSyntax);

if (!File.Exists(Program.SYNTAXDIR + "COBOL.xml"))
File.WriteAllText(Program.SYNTAXDIR + "COBOL.xml", Properties.Resources.COBOLSyntax);

if (!File.Exists(ACSPATH))
File.WriteAllText(ACSPATH, "false");
Expand Down

0 comments on commit 809d90a

Please sign in to comment.