33$build = Join-Path $PSScriptRoot ' build.ci.ps1'
44
55if ( $IsWindows ) {
6- & $build release msvc bootstrap singleheader unreal
6+ & $build release msvc bootstrap singleheader unreal msvc debug
77}
88else {
9- & $build release clang bootstrap singleheader unreal
9+ & $build release clang bootstrap singleheader unreal msvc debug
1010}
1111
1212$path_root = git rev- parse -- show-toplevel
@@ -24,69 +24,68 @@ if ( -not(Test-Path $path_release) ) {
2424 New-Item - ItemType Directory - Path $path_release
2525}
2626
27- if ( -not (Test-Path $path_release_content ) ) {
27+ function prep-ReleaseContent ()
28+ {
2829 New-Item - ItemType Directory - Path $path_release_content
29- }
3030
31- $license = Join-Path $path_root LICENSE
32- $readme_root = Join-Path $path_root Readme.md
33- $readme_docs = Join-Path $path_docs Readme.md
34- $readme_ast_design = Join-Path $path_docs AST_Design.md
35- $readme_ast_types = Join-Path $path_docs AST_Types.md
36- $readme_parsing = Join-Path $path_docs Parsing.md
37- $readme_parser_algo = Join-Path $path_docs Parser_Algo.md
31+ $license = Join-Path $path_root LICENSE
32+ $readme_root = Join-Path $path_root Readme.md
33+ $readme_docs = Join-Path $path_docs Readme.md
34+ $readme_ast_design = Join-Path $path_docs AST_Design.md
35+ $readme_ast_types = Join-Path $path_docs AST_Types.md
36+ $readme_parsing = Join-Path $path_docs Parsing.md
37+ $readme_parser_algo = Join-Path $path_docs Parser_Algo.md
3838
39- Copy-Item $license - Destination (Join-Path $path_release_content " LICENSE" )
40- Copy-Item $readme_root - Destination (Join-Path $path_release_content " Readme.md" )
41- Copy-Item $readme_docs - Destination (Join-Path $path_release_content " Readme_Docs.md" )
42- Copy-Item $readme_ast_design - Destination (Join-Path $path_release_content " AST_Design.md" )
43- Copy-Item $readme_ast_types - Destination (Join-Path $path_release_content " AST_Types.md" )
44- Copy-Item $readme_parsing - Destination (Join-Path $path_release_content " Parsing.md" )
45- Copy-Item $readme_parser_algo - Destination (Join-Path $path_release_content " Parser_Algo.md" )
39+ Copy-Item $license - Destination (Join-Path $path_release_content " LICENSE" )
40+ Copy-Item $readme_root - Destination (Join-Path $path_release_content " Readme.md" )
41+ Copy-Item $readme_docs - Destination (Join-Path $path_release_content " Readme_Docs.md" )
42+ Copy-Item $readme_ast_design - Destination (Join-Path $path_release_content " AST_Design.md" )
43+ Copy-Item $readme_ast_types - Destination (Join-Path $path_release_content " AST_Types.md" )
44+ Copy-Item $readme_parsing - Destination (Join-Path $path_release_content " Parsing.md" )
45+ Copy-Item $readme_parser_algo - Destination (Join-Path $path_release_content " Parser_Algo.md" )
46+ }
4647
4748# Singleheader
49+ prep- ReleaseContent
4850Copy-Item - Path $path_singleheader_gen \gen.hpp - Destination $path_release_content \gen.hpp
4951Compress-Archive - Path $path_release_content \* - DestinationPath $path_release \gencpp_singleheader.zip - Force
50- Remove-Item - Path $path_release_content \gen.hpp
52+ Remove-Item - Path $path_release_content - Recurse
5153
5254# Segmented
55+ prep- ReleaseContent
5356Copy-Item - Path $path_project_gen \* - Destination $path_release_content
5457Compress-Archive - Path $path_release_content \* - DestinationPath $path_release \gencpp_segmented.zip - Force
55- Remove-Item - Path $path_release_content \gen.dep.hpp
56- Remove-Item - Path $path_release_content \gen.dep.cpp
57- Remove-Item - Path $path_release_content \gen.hpp
58- Remove-Item - Path $path_release_content \gen.cpp
59- Remove-Item - Path $path_release_content \gen.builder.hpp
60- Remove-Item - Path $path_release_content \gen.builder.cpp
61- Remove-Item - Path $path_release_content \gen.scanner.hpp
62- Remove-Item - Path $path_release_content \gen.scanner.cpp
58+ Remove-Item - Path $path_release_content - Recurse
6359
6460# Unreal
61+ prep- ReleaseContent
6562Copy-Item - Path $path_unreal_gen \* - Destination $path_release_content
6663Compress-Archive - Path $path_release_content \* - DestinationPath $path_release \gencpp_unreal.zip - Force
67- Remove-Item - Path $path_release_content \gen.dep.hpp
68- Remove-Item - Path $path_release_content \gen.dep.cpp
69- Remove-Item - Path $path_release_content \gen.hpp
70- Remove-Item - Path $path_release_content \gen.cpp
71- Remove-Item - Path $path_release_content \gen.builder.hpp
72- Remove-Item - Path $path_release_content \gen.builder.cpp
73- Remove-Item - Path $path_release_content \gen.scanner.hpp
74- Remove-Item - Path $path_release_content \gen.scanner.cpp
64+ Remove-Item - Path $path_release_content - Recurse
7565
7666# As Is
7767
78- Copy-Item - Path $path_project \gen.hpp - Destination $path_release_content
79- Copy-Item - Path $path_project \gen.cpp - Destination $path_release_content
80- Copy-Item - Path $path_project \gen.dep.hpp - Destination $path_release_content
81- Copy-Item - Path $path_project \gen.dep.cpp - Destination $path_release_content
82- Copy-Item - Path $path_project \auxillary\builder.hpp - Destination $path_release_content
83- Copy-Item - Path $path_project \auxillary\builder.cpp - Destination $path_release_content
84- Copy-Item - Path $path_project \auxillary\scanner.hpp - Destination $path_release_content
85- Copy-Item - Path $path_project \auxillary\scanner.cpp - Destination $path_release_content
86- Copy-Item - Path $path_project \components\* - Destination $path_release_content \components
87- Copy-Item - Path $path_project \dependencies\* - Destination $path_release_content \dependencies
88- Copy-Item - Path $path_project \enums\* - Destination $path_release_content \dependencies
89- Copy-Item - Path $path_project \helpers\* - Destination $path_release_content \dependencies
90- Compress-Archive - Path $path_release_content \* - DestinationPath $path_release \gencpp_as_is.zip - Force
68+ prep- ReleaseContent
69+ Copy-Item - Verbose - Path $path_project \gen.hpp - Destination $path_release_content
70+ Copy-Item - Verbose - Path $path_project \gen.cpp - Destination $path_release_content
71+ Copy-Item - Verbose - Path $path_project \gen.dep.hpp - Destination $path_release_content
72+ Copy-Item - Verbose - Path $path_project \gen.dep.cpp - Destination $path_release_content
73+ Copy-Item - Verbose - Path $path_project \auxillary\builder.hpp - Destination $path_release_content \auxillary
74+ Copy-Item - Verbose - Path $path_project \auxillary\builder.cpp - Destination $path_release_content \auxillary
75+ Copy-Item - Verbose - Path $path_project \auxillary\scanner.hpp - Destination $path_release_content \auxillary
76+ Copy-Item - Verbose - Path $path_project \auxillary\scanner.cpp - Destination $path_release_content \auxillary
77+
78+ New-Item - ItemType Directory - Force - Path " $path_release_content \components"
79+ New-Item - ItemType Directory - Force - Path " $path_release_content \components\gen"
80+ New-Item - ItemType Directory - Force - Path " $path_release_content \dependencies"
81+ New-Item - ItemType Directory - Force - Path " $path_release_content \enums"
82+ New-Item - ItemType Directory - Force - Path " $path_release_content \helpers"
83+
84+ Get-ChildItem - Verbose - Path " $path_project \components\*" - Include * .cpp, * .hpp | Copy-Item - Destination " $path_release_content \components"
85+ Get-ChildItem - Verbose - Path " $path_project \components\gen\*" - Include * .cpp, * .hpp | Copy-Item - Destination " $path_release_content \components\gen"
86+ Get-ChildItem - Verbose - Path " $path_project \dependencies\*" - Include * .cpp, * .hpp | Copy-Item - Destination " $path_release_content \dependencies"
87+ Get-ChildItem - Verbose - Path " $path_project \enums\*" - Include * .csv | Copy-Item - Destination " $path_release_content \enums"
88+ Get-ChildItem - Verbose - Path " $path_project \helpers\*" - Include * .cpp, * .hpp | Copy-Item - Destination " $path_release_content \helpers"
9189
90+ Compress-Archive - Path $path_release_content \** - DestinationPath $path_release \gencpp_as_is.zip - Force
9291Remove-Item - Path $path_release_content - Recurse
0 commit comments