diff --git a/.gitignore b/.gitignore index 5348dfbff..6a063e066 100644 --- a/.gitignore +++ b/.gitignore @@ -1,52 +1,146 @@ -.vs -*/**/bin -bin/Lib/*.pcu -bin/Lib/*.xml -bin/Lib/*.dll -bin/*.dll -bin/*.pdb -bin/*.config -bin/*.xml -bin/log.txt -bin/CompilerController.ini -**/_vti_cnf -**/_vti_pvt -TestSuite/CompilationSamples/*.pcu -TestSuite/CompilationSamples/*.pdb -TestSuite/CompilationSamples/*.exe -TestSuite/CompilationSamples/*.xml -TestSuite/exe -TestSuite/formatter_tests/output +# general ignore +*.pcu +*.pdb +*.csproj.user +#TODO Что то старое. Там, кроме всего прочего, зачем то копия древней версии инсталята паскаля +# - удалить +!Grammars/Oberon10Independent (by Juliet)/**/*.pcu +#TODO Тут тоже копия древних примеров, но зачем то ещё примеры на BrainFuck и PL/0 +# - удалить паскалевские примеры +!ReleaseGenerators/Samples/_SVN/**/*.pcu +#TODO NodesGenerator ещё используется? +# - удалить pdb +!Utils/NodesGeneratorNew/**/*.pdb +#TODO Это папка с тем тестом ML. Стоит её хотя бы в отдельную ветку. А по хорошему отдельным репозиторием... +# - убрать целиком +!W/**/*.pdb -TestSuite/usesunits/*.pcu +# vs internal files +**/.vs/* -TestSuite/pabcrtl_tests/*.pdb -TestSuite/pabcrtl_tests/*.exe -ReleaseGenerators/*.pdb -ReleaseGenerators/PABCRtl/*.dll -ReleaseGenerators/PABCRtl/*.pcu -ReleaseGenerators/PABCRtl/*.pdb -**/obj +# dirs for build temp files +**/obj/* +**/bin/* +!/bin/* +/bin/*.pdb +!/Utils/NSIS/Unicode/Bin/* +!/Utils/NodesGeneratorNew/NodesGenerator_old/bin/* +!/Utils/NodesGeneratorNew/Scintilla/Sources/bin/* +!/Utils/Old/NodesGeneratorOld/bin/* +!/Utils/Old/NodesGeneratorOld0/bin/* +!/YMC/bin/* + +# +/bin/CompilerController.ini + + + +# binary files, generated by build +**/CodeCompletion.dll +**/CodeTemplatesPlugin.dll +**/Compiler.dll +**/CompilerController.dll +**/CompilerTools.dll +**/Errors.dll +**/HelpBuilder.dll +**/InternalErrorReport.dll +**/LambdaAnySynToSemConverter.dll +**/LanguageConverter.dll +**/Localization.dll +**/NETGenerator.dll +**/OptimizerConversion.dll +**/PABCRtl.dll +**/ParserTools.dll +**/PascalABCParser.dll +**/PluginsSupport.dll +**/PluginsSupportLinux.dll +**/Properties.Resources.Designer.cs.dll +**/PT4Provider.dll +**/SemanticTree.dll +**/SemanticTreeVisualisator.dll +**/SyntaxTree.dll +**/SyntaxTreeConverters.dll +**/SyntaxTreeVisualisator.dll +**/SyntaxVisitors.dll +**/TeacherControlPlugin.dll +**/TestPlugin.dll +**/TreeConverter.dll +**/VBNETParser.dll +**/YieldHelpers.dll +**/pabcnetc.exe +**/pabcnetc.exe.config +**/pabcnetcclear.exe +**/pabcnetcclear.exe.config +**/PascalABCNET.exe +**/PascalABCNET.exe.config +**/PascalABCNETLinux.exe +**/PascalABCNETLinux.exe.config +#TODO +!Grammars/Oberon10Independent (by Juliet)/**/*.dll + + + +# external .dll files copied to bin +/bin/AvalonDock.dll +/bin/PT4Tools.dll +/bin/Debugger.Core.dll +/bin/ICSharpCode.AvalonEdit.dll +/bin/ICSharpCode.Core.dll +/bin/ICSharpCode.Core.Presentation.dll +/bin/ICSharpCode.Core.WinForms.dll +/bin/ICSharpCode.NRefactory.dll +/bin/ICSharpCode.SharpDevelop.dll +/bin/ICSharpCode.SharpDevelop.Dom.dll +/bin/ICSharpCode.SharpDevelop.Widgets.dll +/bin/ICSharpCode.SharpZipLib.dll +/bin/ICSharpCode.TextEditor.dll +/bin/ICSharpCode.TextEditorLinux.dll +/bin/Microsoft.Scripting.dll +/bin/Mono.Cecil.dll +/bin/SharpDisasm.dll +/bin/WeifenLuo.WinFormsUI.Docking.dll +/bin/WeifenLuo.WinFormsUI.DockingLinux.dll +/bin/WeifenLuo.WinFormsUI.Docking.ThemeVS2005.dll +/bin/WeifenLuo.WinFormsUI.Docking.ThemeVS2005Linux.dll +#TODO копируется только при сборке pabcnetc.sln - это норм? +# - Этот проект, получается, подключён только к консольным компиляторам +/bin/YieldConversionSyntax.dll + +# Debug-only intellisense problems +/bin/log.txt +/TestSuite/formatter_tests/output/log.txt + + + +# Regenerated before being run by .bat +/bin/TestRunner.exe +/bin/GitIgnoreTester.exe + + + +# this is added to index at "/bin/lib" +/ReleaseGenerators/nunit.framework.dll +/TestSuite/errors/nunit.framework.dll + + + +#TODO Часть в индексе, часть нет +# - все добавить в индекс +/bin/**/*.xml +!/bin/Lib/en/*.xml + +#TODO Метаданные .dll, наверное их забывает удалить после тестирования их генерации? +/bin/mscorlib.txt +/bin/System.Data.dll.txt +/bin/System.dll.txt +/bin/System.Xml.dll.txt + +#TODO Why? +/AddIns/ICSharpCode.SharpDevelop.addin + -ReleaseGenerators/RebuildStandartModules.exe -TestSuite/CompilationSamples/ClientServer.pas -TestSuite/CompilationSamples/PABCExtensions.pas -TestSuite/CompilationSamples/PT4MakerNetX.pas -TestSuite/CompilationSamples/Speech.pas -TestSuite/CompilationSamples/Робот.pas -TestSuite/CompilationSamples/Чертежник.pas -TestSuite/CompilationSamples/Controls.pas -TestSuite/CompilationSamples/GraphWPF.pas -TestSuite/CompilationSamples/NumLibABC.pas -bin/PascalABCNET.exe -bin/System.Data.dll.txt -bin/System.Xml.dll.txt -bin/System.dll.txt -bin/mscorlib.txt -bin/pabcnetc.exe -bin/pabcnetcclear.exe diff --git a/CodeCompletion/Testing.cs b/CodeCompletion/Testing.cs index 891de0d44..7bc65e7cc 100644 --- a/CodeCompletion/Testing.cs +++ b/CodeCompletion/Testing.cs @@ -1091,10 +1091,12 @@ namespace CodeCompletion } public static void Test() - { - string test_dir = GetTestSuiteDir() + @"\formatter_tests"; - string[] files = Directory.GetFiles(test_dir+@"\input","*.pas"); - StreamWriter log = new StreamWriter(test_dir + @"\output\log.txt", false, Encoding.GetEncoding(1251)); + { + string test_dir = Path.Combine(GetTestSuiteDir(), @"formatter_tests"); + string output_dir = Path.Combine(test_dir, @"output"); + Directory.CreateDirectory(output_dir); + string[] files = Directory.GetFiles(test_dir+@"\input","*.pas"); + StreamWriter log = new StreamWriter(Path.Combine(output_dir, @"log.txt"), false, Encoding.GetEncoding(1251)); SyntaxTreeComparer stc = new SyntaxTreeComparer(); foreach (string s in files) { @@ -1106,12 +1108,12 @@ namespace CodeCompletion { CodeFormatters.CodeFormatter cf = new CodeFormatters.CodeFormatter(2); Text = cf.FormatTree(Text, cu, 1, 1); - StreamWriter sw = new StreamWriter(Path.Combine(test_dir + @"\output", Path.GetFileName(s)), false, Encoding.GetEncoding(1251)); + StreamWriter sw = new StreamWriter(Path.Combine(output_dir, Path.GetFileName(s)), false, Encoding.GetEncoding(1251)); sw.Write(Text); sw.Close(); Errors.Clear(); Warnings.Clear(); - compilation_unit cu2 = CodeCompletionController.ParsersController.GetCompilationUnitForFormatter(Path.Combine(test_dir + @"\output", Path.GetFileName(s)), Text, Errors, Warnings); + compilation_unit cu2 = CodeCompletionController.ParsersController.GetCompilationUnitForFormatter(Path.Combine(output_dir, Path.GetFileName(s)), Text, Errors, Warnings); if (Errors.Count > 0) { for (int i = 0; i < Errors.Count; i++) @@ -1132,7 +1134,7 @@ namespace CodeCompletion } } } - files = Directory.GetFiles(test_dir+@"\output", "*.pas"); + files = Directory.GetFiles(output_dir, "*.pas"); foreach (string s in files) { var sr = new StreamReader(s, System.Text.Encoding.GetEncoding(1251)); diff --git a/Compiler/Compiler.csproj.user b/Compiler/Compiler.csproj.user deleted file mode 100644 index 70db60ad0..000000000 --- a/Compiler/Compiler.csproj.user +++ /dev/null @@ -1,67 +0,0 @@ - - - - 7.10.3077 - Debug - AnyCPU - - - - - - - 0 - ProjectFiles - 0 - - - - - - - ru-RU - false - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - \ No newline at end of file diff --git a/Debugger.Core/Debugger.Core.csproj.user b/Debugger.Core/Debugger.Core.csproj.user deleted file mode 100644 index 7ab1dbf2c..000000000 --- a/Debugger.Core/Debugger.Core.csproj.user +++ /dev/null @@ -1,22 +0,0 @@ - - - - 8.0.50215 - ProjectFiles - 0 - - - - - - - - - - - - - de-DE - false - - \ No newline at end of file diff --git a/Errors/Properties/.gitignore b/Errors/Properties/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/Grammars/Oberon10Independent (by Juliet)/ObrProba.csproj.user b/Grammars/Oberon10Independent (by Juliet)/ObrProba.csproj.user deleted file mode 100644 index f3dde26c7..000000000 --- a/Grammars/Oberon10Independent (by Juliet)/ObrProba.csproj.user +++ /dev/null @@ -1,7 +0,0 @@ - - - - Program - D:\PascalABC.NET\!PABC_SVN\bin\PascalABCNET.exe - - \ No newline at end of file diff --git a/InteractiveDataDisplay_OneDll/.gitignore b/InteractiveDataDisplay_OneDll/.gitignore deleted file mode 100644 index 940794e60..000000000 --- a/InteractiveDataDisplay_OneDll/.gitignore +++ /dev/null @@ -1,288 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ - -# Visual Studio 2015 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUNIT -*.VisualState.xml -TestResult.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ -**/Properties/launchSettings.json - -*_i.c -*_p.c -*_i.h -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# TODO: Comment the next line if you want to checkin your web deploy settings -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# The packages folder can be ignored because of Package Restore -**/packages/* -# except build/, which is used as an MSBuild target. -!**/packages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/packages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Typescript v1 declaration files -typings/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# JetBrains Rider -.idea/ -*.sln.iml - -# CodeRush -.cr/ - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs diff --git a/Libraries/AvalonDock/AvalonDock.Themes/AvalonDock.Themes.csproj.user b/Libraries/AvalonDock/AvalonDock.Themes/AvalonDock.Themes.csproj.user deleted file mode 100644 index 07dbd5b56..000000000 --- a/Libraries/AvalonDock/AvalonDock.Themes/AvalonDock.Themes.csproj.user +++ /dev/null @@ -1,6 +0,0 @@ - - - - ProjectFiles - - \ No newline at end of file diff --git a/Libraries/Debugger.Core/Debugger.Core.csproj.user b/Libraries/Debugger.Core/Debugger.Core.csproj.user deleted file mode 100644 index bf3b4c208..000000000 --- a/Libraries/Debugger.Core/Debugger.Core.csproj.user +++ /dev/null @@ -1,21 +0,0 @@ - - - 8.0.50215 - ProjectFiles - 0 - - - - - - - - - - - - - en-US - true - - \ No newline at end of file diff --git a/OptimizedAssemblies/.gitignore b/OptimizedAssemblies/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/ParserTools/Properties/.gitignore b/ParserTools/Properties/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/Release/.gitignore b/Release/.gitignore index e69de29bb..087353173 100644 --- a/Release/.gitignore +++ b/Release/.gitignore @@ -0,0 +1,7 @@ + + + +*.exe +*.zip + + diff --git a/ReleaseGenerators/.gitignore b/ReleaseGenerators/.gitignore new file mode 100644 index 000000000..4d8424564 --- /dev/null +++ b/ReleaseGenerators/.gitignore @@ -0,0 +1,16 @@ + + + +/RebuildStandartModules.exe + +#TODO Вместо утого удалить устаревшие .pas тесты, оставив остальное без игнора +/Samples/* +!/Samples/_SVN/ + + + +!/Samples/ExportSamples.bat +!/Samples/GetSamples.exe +!/Samples/GetSamples.pnet + + diff --git a/SemanticTree/SemanticTree.csproj.user b/SemanticTree/SemanticTree.csproj.user deleted file mode 100644 index 8fb9fcb77..000000000 --- a/SemanticTree/SemanticTree.csproj.user +++ /dev/null @@ -1,66 +0,0 @@ - - - - 7.10.3077 - Debug - AnyCPU - - - - - - - 0 - ProjectFiles - 0 - - - - - - - ru-RU - false - - - false - false - false - false - false - - - Project - ..\samples\test_ext_def.pas - - - - - - - - - true - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - \ No newline at end of file diff --git a/SyntaxTree/SyntaxTree.csproj.user b/SyntaxTree/SyntaxTree.csproj.user deleted file mode 100644 index 70db60ad0..000000000 --- a/SyntaxTree/SyntaxTree.csproj.user +++ /dev/null @@ -1,67 +0,0 @@ - - - - 7.10.3077 - Debug - AnyCPU - - - - - - - 0 - ProjectFiles - 0 - - - - - - - ru-RU - false - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - \ No newline at end of file diff --git a/SyntaxVisitors/.gitignore b/SyntaxVisitors/.gitignore deleted file mode 100644 index 893c20ff6..000000000 --- a/SyntaxVisitors/.gitignore +++ /dev/null @@ -1,167 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates -.vs/ - -# Build results -[Bb]inaries/ -[Dd]ebug/ -[Rr]elease/ -x64/ -[Bb]in/ -[Oo]bj/ - -# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets -!packages/*/build/ - -# NuGet restore semaphore -build/ToolsetPackages/toolsetpackages.semaphore - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* -UnitTestResults.html - -# NuGet V3 artifacts -*-packages.config -*.nuget.props -*.nuget.targets - -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.wrn -*.vspscc -*.vssscc -.builds -*.pidb -*.log -*.scc - -# Visual Studio cache files -*.sln.ide/ - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -*.ncrunch* -.*crunch*.local.xml - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.Publish.xml - -# NuGet Packages Directory -packages/ - -# Windows Azure Build Output -csx -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Others -sql/ -*.Cache -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.[Pp]ublish.xml -*.pfx -*.publishsettings - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -App_Data/*.mdf -App_Data/*.ldf - - -#LightSwitch generated files -GeneratedArtifacts/ -_Pvt_Extensions/ -ModelManifest.xml - -# ========================= -# Windows detritus -# ========================= - -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Mac desktop service store files -.DS_Store diff --git a/TestSuite/.gitignore b/TestSuite/.gitignore new file mode 100644 index 000000000..413caff47 --- /dev/null +++ b/TestSuite/.gitignore @@ -0,0 +1,45 @@ + + + +# general ignore +*.exe +*.pdb +*.xml +/exe/*.dll +/formatter_tests/output/**/*.pas + + + +/exe/input.txt +/exe/out.txt +/exe/test.txt +/exe/*.dat + + + +#TODO Большая часть .pas файлов добавленны, некоторые нет... пока заигнорил недобавленные +# - Вообще по моему лучше удалить все эти файлы из индекса +# - В индекс +/CompilationSamples/Controls.pas +/CompilationSamples/LightPT.pas +/CompilationSamples/NUnitABC.pas +/CompilationSamples/PT4Databases.pas +/CompilationSamples/Speech.pas +/CompilationSamples/Tasks.pas +/CompilationSamples/Tasks1Arr.pas +/CompilationSamples/Tasks1Begin.pas +/CompilationSamples/Tasks1BoolIfCase.pas +/CompilationSamples/Tasks1Loops.pas +/CompilationSamples/TasksArr.pas +/CompilationSamples/TasksMatr.pas +/CompilationSamples/TasksStr.pas +/CompilationSamples/Turtle.pas +/CompilationSamples/TurtleWPF.pas +/CompilationSamples/TwoPanelsWindow.pas +/CompilationSamples/XLSX.pas +/CompilationSamples/xPT4MakerNetX.pas +/CompilationSamples/xPT4TaskMakerNET.pas +/CompilationSamples/Мозаика.pas +/CompilationSamples/МозаикаABC.pas + + diff --git a/TestSuite/exe/.gitignore b/TestSuite/exe/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/TestSuite/formatter_tests/output/.gitignore b/TestSuite/formatter_tests/output/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/TestSuite/lambdas/lambdas_generics2.exe b/TestSuite/lambdas/lambdas_generics2.exe deleted file mode 100644 index 800fd4672..000000000 Binary files a/TestSuite/lambdas/lambdas_generics2.exe and /dev/null differ diff --git a/TestSuite/lambdas/lambdas_generics2.pdb b/TestSuite/lambdas/lambdas_generics2.pdb deleted file mode 100644 index ac67baf7f..000000000 Binary files a/TestSuite/lambdas/lambdas_generics2.pdb and /dev/null differ diff --git a/Utils/NodesGeneratorNew/NodesGenerator.csproj.user b/Utils/NodesGeneratorNew/NodesGenerator.csproj.user deleted file mode 100644 index 0bc56a612..000000000 --- a/Utils/NodesGeneratorNew/NodesGenerator.csproj.user +++ /dev/null @@ -1,70 +0,0 @@ - - - - 7.10.3077 - Debug - AnyCPU - - - - - - - 0 - ProjectFiles - 0 - опубликовать\ - - - - - - ru-RU - false - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - - false - false - false - false - false - - - Project - - - - - - - - - - - false - - - true - - \ No newline at end of file diff --git a/Utils/NodesGeneratorNew/NodesGenerator_old/NodesGenerator.csproj.user b/Utils/NodesGeneratorNew/NodesGenerator_old/NodesGenerator.csproj.user deleted file mode 100644 index 41ca747b0..000000000 --- a/Utils/NodesGeneratorNew/NodesGenerator_old/NodesGenerator.csproj.user +++ /dev/null @@ -1,67 +0,0 @@ - - - - 7.10.3077 - Debug - AnyCPU - - - - - - - 0 - ProjectFiles - 0 - - - - - - - ru-RU - false - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - - false - false - false - false - false - - - Project - - - - - - - - - - - false - - \ No newline at end of file diff --git a/Utils/Old/NodesGeneratorOld/NodesGenerator.csproj.user b/Utils/Old/NodesGeneratorOld/NodesGenerator.csproj.user deleted file mode 100644 index fc5f59bbc..000000000 --- a/Utils/Old/NodesGeneratorOld/NodesGenerator.csproj.user +++ /dev/null @@ -1,58 +0,0 @@ - - - 7.10.3077 - Debug - AnyCPU - - - - - - - 0 - ProjectFiles - 0 - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - - false - false - false - false - false - - - Project - - - - - - - - - - - false - - \ No newline at end of file diff --git a/Utils/Old/NodesGeneratorOld0/NodesGenerator.csproj.user b/Utils/Old/NodesGeneratorOld0/NodesGenerator.csproj.user deleted file mode 100644 index 41ca747b0..000000000 --- a/Utils/Old/NodesGeneratorOld0/NodesGenerator.csproj.user +++ /dev/null @@ -1,67 +0,0 @@ - - - - 7.10.3077 - Debug - AnyCPU - - - - - - - 0 - ProjectFiles - 0 - - - - - - - ru-RU - false - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - - false - false - false - false - false - - - Project - - - - - - - - - - - false - - \ No newline at end of file diff --git a/VisualPascalABCNET/FormsDesignerBinding/Dependecies/src/Libraries/ICSharpCode.Build.Tasks/Project/ICSharpCode.Build.Tasks.csproj.user b/VisualPascalABCNET/FormsDesignerBinding/Dependecies/src/Libraries/ICSharpCode.Build.Tasks/Project/ICSharpCode.Build.Tasks.csproj.user deleted file mode 100644 index 3ea973d02..000000000 --- a/VisualPascalABCNET/FormsDesignerBinding/Dependecies/src/Libraries/ICSharpCode.Build.Tasks/Project/ICSharpCode.Build.Tasks.csproj.user +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/VisualPascalABCNET/FormsDesignerBinding/Dependecies/src/Main/StartUp/Project/StartUp.csproj.user b/VisualPascalABCNET/FormsDesignerBinding/Dependecies/src/Main/StartUp/Project/StartUp.csproj.user deleted file mode 100644 index e1d33e369..000000000 --- a/VisualPascalABCNET/FormsDesignerBinding/Dependecies/src/Main/StartUp/Project/StartUp.csproj.user +++ /dev/null @@ -1,7 +0,0 @@ - - - 8.0.41115 - ProjectFiles - 0 - - \ No newline at end of file diff --git a/VisualPascalABCNET/SSYY/DesignerHost.csproj.user b/VisualPascalABCNET/SSYY/DesignerHost.csproj.user deleted file mode 100644 index 6b7d1b34b..000000000 --- a/VisualPascalABCNET/SSYY/DesignerHost.csproj.user +++ /dev/null @@ -1,57 +0,0 @@ - - - Debug - AnyCPU - - - - - - - 0 - ProjectFiles - 0 - - - false - false - false - false - false - - - Project - - - - - - - - - - - false - - - false - false - false - false - false - - - Project - - - - - - - - - - - false - - \ No newline at end of file diff --git a/WeifenLuoLinux/.gitignore b/WeifenLuoLinux/.gitignore deleted file mode 100644 index c258adf6c..000000000 --- a/WeifenLuoLinux/.gitignore +++ /dev/null @@ -1,31 +0,0 @@ -build/ -*.suo -*.user -_ReSharper* -*.csproj.user -*.resharper.user -*.userprefs -*.suo -*.cache -*.trx -*.pidb -Thumbs.db -[Bb]in -[Dd]ebug -[Oo]bj -[Rr]elease -[Tt]est[Rr]esult* -_UpgradeReport_Files -*[Pp]ublish.xml -*.project -*.metadata -logs -*.generated.cs -T4MVC.cs -/SharpSnmpLib/sharpsnmplib.snk -/packages -/Gendarme -*.nupkg -/.vs -/.idea -*.bak diff --git a/Yield/ParsePABC1/.gitignore b/Yield/ParsePABC1/.gitignore deleted file mode 100644 index 893c20ff6..000000000 --- a/Yield/ParsePABC1/.gitignore +++ /dev/null @@ -1,167 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates -.vs/ - -# Build results -[Bb]inaries/ -[Dd]ebug/ -[Rr]elease/ -x64/ -[Bb]in/ -[Oo]bj/ - -# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets -!packages/*/build/ - -# NuGet restore semaphore -build/ToolsetPackages/toolsetpackages.semaphore - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* -UnitTestResults.html - -# NuGet V3 artifacts -*-packages.config -*.nuget.props -*.nuget.targets - -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.wrn -*.vspscc -*.vssscc -.builds -*.pidb -*.log -*.scc - -# Visual Studio cache files -*.sln.ide/ - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -*.ncrunch* -.*crunch*.local.xml - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.Publish.xml - -# NuGet Packages Directory -packages/ - -# Windows Azure Build Output -csx -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Others -sql/ -*.Cache -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.[Pp]ublish.xml -*.pfx -*.publishsettings - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -App_Data/*.mdf -App_Data/*.ldf - - -#LightSwitch generated files -GeneratedArtifacts/ -_Pvt_Extensions/ -ModelManifest.xml - -# ========================= -# Windows detritus -# ========================= - -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Mac desktop service store files -.DS_Store diff --git a/Yield/YieldConversionSyntax/.gitignore b/Yield/YieldConversionSyntax/.gitignore deleted file mode 100644 index 893c20ff6..000000000 --- a/Yield/YieldConversionSyntax/.gitignore +++ /dev/null @@ -1,167 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates -.vs/ - -# Build results -[Bb]inaries/ -[Dd]ebug/ -[Rr]elease/ -x64/ -[Bb]in/ -[Oo]bj/ - -# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets -!packages/*/build/ - -# NuGet restore semaphore -build/ToolsetPackages/toolsetpackages.semaphore - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* -UnitTestResults.html - -# NuGet V3 artifacts -*-packages.config -*.nuget.props -*.nuget.targets - -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.wrn -*.vspscc -*.vssscc -.builds -*.pidb -*.log -*.scc - -# Visual Studio cache files -*.sln.ide/ - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -*.ncrunch* -.*crunch*.local.xml - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.Publish.xml - -# NuGet Packages Directory -packages/ - -# Windows Azure Build Output -csx -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Others -sql/ -*.Cache -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.[Pp]ublish.xml -*.pfx -*.publishsettings - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -App_Data/*.mdf -App_Data/*.ldf - - -#LightSwitch generated files -GeneratedArtifacts/ -_Pvt_Extensions/ -ModelManifest.xml - -# ========================= -# Windows detritus -# ========================= - -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Mac desktop service store files -.DS_Store diff --git a/Yield/YieldHelpers/.gitignore b/Yield/YieldHelpers/.gitignore deleted file mode 100644 index 893c20ff6..000000000 --- a/Yield/YieldHelpers/.gitignore +++ /dev/null @@ -1,167 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates -.vs/ - -# Build results -[Bb]inaries/ -[Dd]ebug/ -[Rr]elease/ -x64/ -[Bb]in/ -[Oo]bj/ - -# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets -!packages/*/build/ - -# NuGet restore semaphore -build/ToolsetPackages/toolsetpackages.semaphore - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* -UnitTestResults.html - -# NuGet V3 artifacts -*-packages.config -*.nuget.props -*.nuget.targets - -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.wrn -*.vspscc -*.vssscc -.builds -*.pidb -*.log -*.scc - -# Visual Studio cache files -*.sln.ide/ - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -*.ncrunch* -.*crunch*.local.xml - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.Publish.xml - -# NuGet Packages Directory -packages/ - -# Windows Azure Build Output -csx -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Others -sql/ -*.Cache -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.[Pp]ublish.xml -*.pfx -*.publishsettings - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -App_Data/*.mdf -App_Data/*.ldf - - -#LightSwitch generated files -GeneratedArtifacts/ -_Pvt_Extensions/ -ModelManifest.xml - -# ========================= -# Windows detritus -# ========================= - -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Mac desktop service store files -.DS_Store diff --git a/Yield/tests/.gitignore b/Yield/tests/.gitignore deleted file mode 100644 index 893c20ff6..000000000 --- a/Yield/tests/.gitignore +++ /dev/null @@ -1,167 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates -.vs/ - -# Build results -[Bb]inaries/ -[Dd]ebug/ -[Rr]elease/ -x64/ -[Bb]in/ -[Oo]bj/ - -# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets -!packages/*/build/ - -# NuGet restore semaphore -build/ToolsetPackages/toolsetpackages.semaphore - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* -UnitTestResults.html - -# NuGet V3 artifacts -*-packages.config -*.nuget.props -*.nuget.targets - -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.wrn -*.vspscc -*.vssscc -.builds -*.pidb -*.log -*.scc - -# Visual Studio cache files -*.sln.ide/ - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -*.ncrunch* -.*crunch*.local.xml - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.Publish.xml - -# NuGet Packages Directory -packages/ - -# Windows Azure Build Output -csx -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Others -sql/ -*.Cache -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.[Pp]ublish.xml -*.pfx -*.publishsettings - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -App_Data/*.mdf -App_Data/*.ldf - - -#LightSwitch generated files -GeneratedArtifacts/ -_Pvt_Extensions/ -ModelManifest.xml - -# ========================= -# Windows detritus -# ========================= - -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Mac desktop service store files -.DS_Store diff --git a/_GenerateAllSetups.bat b/_GenerateAllSetups.bat index 10bc7b29a..ee8aee19f 100644 --- a/_GenerateAllSetups.bat +++ b/_GenerateAllSetups.bat @@ -41,6 +41,7 @@ ExecHide.exe gacutil.exe /i ..\bin\Lib\PABCRtl.dll cd ..\bin +pabcnetcclear TestRunner.pas TestRunner.exe 1 TestRunner.exe 2 TestRunner.exe 3 diff --git a/_RebuildReleaseAndRunTests.bat b/_RebuildReleaseAndRunTests.bat index ec3ecda58..b66af083b 100644 --- a/_RebuildReleaseAndRunTests.bat +++ b/_RebuildReleaseAndRunTests.bat @@ -25,6 +25,7 @@ ExecHide.exe gacutil.exe /i ..\bin\Lib\PABCRtl.dll cd ..\bin REM MPGORunner.exe +pabcnetcclear TestRunner.pas TestRunner.exe 1 TestRunner.exe 2 TestRunner.exe 3 @@ -32,6 +33,13 @@ TestRunner.exe 4 TestRunner.exe 5 TestRunner.exe 6 cd .. + +cd bin +pabcnetcclear GitIgnoreTester.pas +GitIgnoreTester.exe NoWait +@IF %ERRORLEVEL% NEQ 0 GOTO ERROR +cd .. + GOTO EXIT :ERROR diff --git a/_RebuildReleaseAndRunTestsForGitHubActions.bat b/_RebuildReleaseAndRunTestsForGitHubActions.bat index 8947cf67a..70a73fe62 100644 --- a/_RebuildReleaseAndRunTestsForGitHubActions.bat +++ b/_RebuildReleaseAndRunTestsForGitHubActions.bat @@ -25,6 +25,7 @@ ExecHide.exe gacutil.exe /i ..\bin\Lib\PABCRtl.dll cd ..\bin REM MPGORunner.exe +pabcnetcclear TestRunner.pas TestRunner.exe 1 1 @IF %ERRORLEVEL% NEQ 0 GOTO ERROR TestRunner.exe 2 1 @@ -37,7 +38,12 @@ TestRunner.exe 5 1 @IF %ERRORLEVEL% NEQ 0 GOTO ERROR TestRunner.exe 6 1 @IF %ERRORLEVEL% NEQ 0 GOTO ERROR + +pabcnetcclear GitIgnoreTester.pas +GitIgnoreTester.exe NoWait +@IF %ERRORLEVEL% NEQ 0 GOTO ERROR cd .. + GOTO EXIT :ERROR diff --git a/_TestGitIgnore.bat b/_TestGitIgnore.bat new file mode 100644 index 000000000..539fb6565 --- /dev/null +++ b/_TestGitIgnore.bat @@ -0,0 +1,17 @@ + + + +cd bin +pabcnetcclear GitIgnoreTester.pas +GitIgnoreTester.exe NoWait +@IF %ERRORLEVEL% NEQ 0 GOTO ERROR +cd .. + + + +GOTO EXIT + +:ERROR +PAUSE + +:EXIT \ No newline at end of file diff --git a/bin/GitIgnoreTester.pas b/bin/GitIgnoreTester.pas new file mode 100644 index 000000000..3fd45caa7 --- /dev/null +++ b/bin/GitIgnoreTester.pas @@ -0,0 +1,106 @@ +## uses System.Diagnostics; + +function Fix8Code(s: string) := Regex.Replace(s, '(\\\d{3})+', m-> +begin + var bytes := m.Value.ToWords('\').ConvertAll(x->Convert.ToByte(x, 8)); + Result := System.Text.Encoding.UTF8.GetString(bytes); +end); + +// Чтобы удобнее сравнивать вывод этой программы +//Rewrite(output, 'temp.txt'); +try + var dir := GetEXEFileName; + loop 2 do dir := System.IO.Path.GetDirectoryName(dir); + dir.Println; + + var index_files := new HashSet; + begin + var psi := new ProcessStartInfo('git', 'ls-files'); + psi.WorkingDirectory := dir; + psi.UseShellExecute := false; + psi.RedirectStandardOutput := true; + + var p := Process.Start(psi); + p.OutputDataReceived += (o,e)-> + try + if e.Data=nil then exit; + var fname := Fix8Code(e.Data); + if not fname.StartsWith('"') then + fname := $'"{fname}"'; + if not index_files.Add(fname) then + raise new System.InvalidOperationException; + except + on ex: Exception do Println(ErrOutput, ex); + end; + p.BeginOutputReadLine; + + p.WaitForExit; + end; + //index_files.PrintLines; + + var all_files := new HashSet; + foreach var full_fname in EnumerateAllFiles(dir) do + begin + var fname := full_fname.Substring(dir.Length+1).Replace('\','/'); + if fname.StartsWith('.git/') then continue; + fname := $'"{fname}"'; + if not all_files.Add(fname) then + raise new System.InvalidOperationException; + end; + + var ignored_files := new HashSet; + begin + var psi := new ProcessStartInfo('git', 'check-ignore --no-index --stdin'); + psi.WorkingDirectory := dir; + psi.UseShellExecute := false; + psi.RedirectStandardInput := true; + psi.RedirectStandardOutput := true; + + var p := Process.Start(psi); + + p.OutputDataReceived += (o,e)-> + try + if e.Data=nil then exit; + var fname := Fix8Code(e.Data); + if not fname.StartsWith('"') then + fname := $'"{fname}"'; + if not ignored_files.Add(fname) then + raise new System.InvalidOperationException; + except + on ex: Exception do Println(ErrOutput, ex); + end; + p.BeginOutputReadLine; + + foreach var fname in all_files do + p.StandardInput.WriteLine(fname); + p.StandardInput.Close; + + p.WaitForExit; + end; + + var err := false; + foreach var fname in index_files.Order do + begin + if fname not in ignored_files then continue; + $'Ignored index file: {fname}'.Println; + err := true; + end; + foreach var fname in all_files.Order do + begin + if fname in index_files then continue; + if fname in ignored_files then continue; + $'Unversioned file: {fname}'.Println; + err := true; + end; + System.Environment.ExitCode := Ord(err); + +except + on ex: Exception do + begin + Println(ErrOutput, ex); + System.Environment.ExitCode := ex.HResult; + end; +end; +//output.Close; +if 'NoWait' not in CommandLineArgs then + ReadString('Done'); \ No newline at end of file diff --git a/bin/Temp/.gitignore b/bin/Temp/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/bin/TestRunner.exe b/bin/TestRunner.exe deleted file mode 100644 index dc7223340..000000000 Binary files a/bin/TestRunner.exe and /dev/null differ diff --git a/bin/TestRunner.pas b/bin/TestRunner.pas index b27c1b6ed..b48a01391 100644 --- a/bin/TestRunner.pas +++ b/bin/TestRunner.pas @@ -108,6 +108,7 @@ begin var co: CompilerOptions := new CompilerOptions(files[i], CompilerOptions.OutputType.ConsoleApplicaton); co.Debug := true; co.OutputDirectory := TestSuiteDir + PathSeparator + 'exe'; + Directory.CreateDirectory(co.OutputDirectory); co.UseDllForSystemUnits := withdll; co.RunWithEnvironment := false; co.IgnoreRtlErrors := false; @@ -336,6 +337,7 @@ end; procedure ClearDirByPattern(dir, pattern: string); begin + if not Directory.Exists(dir) then exit; var files := Directory.GetFiles(dir, pattern); for var i := 0 to files.Length - 1 do begin diff --git a/pabcnetc_clear/PABCNETCclear.csproj.user b/pabcnetc_clear/PABCNETCclear.csproj.user deleted file mode 100644 index e8d961670..000000000 --- a/pabcnetc_clear/PABCNETCclear.csproj.user +++ /dev/null @@ -1,71 +0,0 @@ - - - - 7.10.3077 - Debug - AnyCPU - - - - - - - 0 - ProjectFiles - 0 - http://localhost/pabcnetcclear/|publish\ - - - - - - - - - en-US - false - - - - - false - false - false - false - false - - - Project - /version: - - - - - - - - - true - - - false - false - false - false - false - - - Project - - - - - - - - - - - true - - \ No newline at end of file