-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildControl.psgg
1123 lines (933 loc) · 18.2 KB
/
BuildControl.psgg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;PSGG Editor Backup File
version=1.1
file=BuildControl.xlsx
guid=014d285f-288c-4b0b-82bc-a9f99600208d
;set read_from excel or psgg
read_from=psgg
;set savemode with_excel or psgg_only
save_mode=psgg_only
;set check_excel_writable yes or no
check_excel_writable=no
------#======*<Guid(D13821FE-FA27-4B04-834C-CEC1E5670F48)>*======#------
sheet=state-chart
nameid_list=,n001,n002,n003,n004,n00f,n005,n006,,n014,n007,n008,,n010,,n011,n012,n013,,n009,n00a,n00b,,n00c,n00d,n00e,,
stateid_list=,,,,s0001,s0002,s0004,s0003,,s000f,s0010,s0011,s0012,s0013,s0014,s0015,s0016,s0017,s0018,s0019,s000e,s001a,s001b,s001c,s001e,s001d,s0020,s001f,s0022,s0021,,s0023
max_name_id=20
max_state_id=35
[id_name_dic]
n001=thumbnail
n002=state
n003=state-cmt
n004=state-ref
n005=basestate
n006=nextstate
n007=command
n008=command-cmt
n009=branch
n00a=branch-cmt
n00b=brcond
n00c=!dir
n00d=!pos
n00e=!uuid
n00f=state-typ
n010=gosubstate
n011=loop_init
n012=loop_cond
n013=loop_next
n014=embed
[id_state_dic]
s0001=S_START
s0002=S_END
s0003=S_0002
s0004=S_0001
s000e=S_0000
s000f=S_0004
s0010=S_0005
s0011=S_0006
s0012=S_0007
s0013=S_0008
s0014=S_0009
s0015=S_0010
s0016=S_0011
s0017=S_0012
s0018=S_0013
s0019=S_0014
s001a=S_BACKTO_000
s001b=S_0015
s001c=S_0016
s001d=S_0017
s001e=S_0018
s001f=S_0019
s0020=S_0020
s0021=S_0021
s0022=S_0022
s0023=S_0023
[s0001]
n002=S_START
n003=
n00f=start
n006=S_0000
n00c=@@@
/
(100,100)
The root
@@@
n00d=45,41
n00e=100001
[s0002]
n002=S_END
n003=
n00f=end
n007=
n00c=@@@
/
(100,100)
The root
@@@
n00d=3270,121
n00e=100002
[s0003]
n001=(bitmap)
n002=S_0002
n003=
n00f=
n006=S_0004
n007=@@@
echo :
echo : StateGo build batch
echo :
@@@
n010=
n00c=@@@
/
(100,100)
The root
@@@
n00d=526,35
n00e=100015
[s0004]
n001=(bitmap)
n002=S_0001
n003=
n00f=
n006=S_0002
n007=SET DP=pause
n00c=@@@
/
(100,100)
The root
@@@
n00d=339,38
n00e=100014
[s000e]
n002=S_0000
n006=S_0002
n007=@@@
@echo off
cd /d %~dp0
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=157,41
n00e=100013
[s000f]
n001=(bitmap)
n002=S_0004
n003=環境存在確認
n009=@@@
brifc(S_0005);
brelseifc(S_0005);
brelse(S_0006);
@@@
n00a=@@@
VS2022
NUGET
?
@@@
n00b=@@@
not exist "%MSBUILD17%"
not exist "%NUGET%"
?
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=323,660
n00e=100017
[s0010]
n001=(bitmap)
n002=S_0005
n003=環境エラー
n006=S_END
n007=@@@
echo : ERROR
echo : Please install Visual Studio 2022 for c++ and c#
echo :
pause
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=599,208
n00e=100018
[s0011]
n001=(bitmap)
n002=S_0006
n003=メニュー表示
n007=@@@
cd /d %~dp0
set CFG=
set TGT=
set a=
echo :
echo : 0. Clean
echo : 1. Build Debug
echo : 2. Build Release
echo : 3. Create Release ZIP ※First Buld Release
echo : 4. Update existing files in Program Files (*use admin)
echo : 5. Copy Debug Files to existing files in Program Files(*use admin)
set /p a="Select : "
@@@
n009=@@@
brifc(S_0007);
brelseifc(S_0008);
brelseifc(S_0009);
brelseifc(S_0015);
brelseifc(S_0018);
brelseifc(S_0021);
brelse(S_0006);
@@@
n00a=@@@
Clean
BUILD DEBUG
BUILD RELASE
CREATE ZIP
UPDATE
COPY FOR DEBUG
?
@@@
n00b=@@@
"%a%"=="0"
"%a%"=="1"
"%a%"=="2"
"%a%"=="3"
"%a%"=="4"
"%a%"=="5"
?
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=637,804
n00e=100019
[s0012]
n002=S_0007
n003=Clean
n006=S_BACKTO_000
n007=@@@
cd /d %~dp0
rd /s /q m1\StateViewer\packages 2>nul
rd /s /q m1\StateViewer\StateViewer\bin 2>nul
rd /s /q m1\StateViewer\StateViewer\obj 2>nul
rd /s /q m1\StateViewer\StateViewer_starter2\bin 2>nul
rd /s /q m1\StateViewer\StateViewer_starter2\obj 2>nul
rd /s /q m1\StateViewer\StateViwer_version\bin 2>nul
rd /s /q m1\StateViewer\StateViwer_version\obj 2>nul
rd /s /q m1\StateViewer\WordStorage\bin 2>nul
rd /s /q m1\StateViewer\WordStorage\obj 2>nul
rd /s /q m1\StateViewer\StateViewer\bin 2>nul
rd /s /q m1\StateViewer\StateViewer\obj 2>nul
rd /s /q Work 2>nul
md Work 2>nul
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=898,652
n00e=100020
[s0013]
n001=(bitmap)
n002=S_0008
n003=Build Debug
n006=S_0017
n007=@@@
set CFG=Debug
echo :
echo : Start "Build Debug"
echo :
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=902,935
n00e=100021
[s0014]
n001=(bitmap)
n002=S_0009
n003=Build Relase
n006=S_0017
n007=@@@
set CFG=Release
echo :
echo : Start "Build Relase"
echo :
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=905,1086
n00e=100022
[s0015]
n001=(bitmap)
n002=S_0010
n003=Build Version Maker
n006=S_0023
n007=@@@
echo : ------------------------------
echo : build Version Maker
echo : ------------------------------
pushd Tools\version-maker\vm
"%MSBUILD17%" vm.sln /t:Build /p:Configuration=Release
popd
echo : done!
%DP%
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=1615,1005
n00e=100023
[s0016]
n002=S_0011
n003=Build Converter
n006=S_0016
n007=@@@
echo : --------------
echo : build conveter
echo : --------------
pushd Work
md conv 2>nul
git clone https://github.com/NNNIC/psgg-converter.git conv
pushd conv
git rev-parse HEAD > ..\head.txt
popd
set hash=
for /f %%i in (head.txt) do if "%hash%"=="" set hash=%%i
echo :
echo : hash=%hash%
echo :
echo namespace psggConverterLib { public class githash { public const string hash="%hash%"; }} > conv\psggConverter\psggConverterLib\githash.cs
echo : type conv\psggConverter\psggConverterLib\githash.cs
echo : vvvv
type conv\psggConverter\psggConverterLib\githash.cs
echo : ^^^^^^^^
echo : Start build...
echo : .
pushd conv\psggConverter
"%MSBUILD17%" psggConverter.sln /t:psggConverter:Rebuild /p:Configuration=%CFG%
popd
popd
echo : done!
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=2888,1005
n00e=100024
[s0017]
n002=S_0012
n003=GET MERMAIND
n006=S_0011
n007=@@@
echo : -----------
echo : get mermaid
echo : -----------
pushd Work
md mermaid 2>nul
pushd mermaid
curl https://github.com/NNNIC/psgg-mermaid-flow/releases/download/1.2/psgg-mermaid-flow.zip -O -J -L
echo : got https://github.com/NNNIC/psgg-mermaid-flow/releases/download/1.2/psgg-mermaid-flow.zip
powershell expand-archive psgg-mermaid-flow.zip ./ -Force
echo : upziped
popd
popd
echo : done!
%DP%
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=2644,1005
n00e=100025
[s0018]
n002=S_0013
n003=GET STARTER KIT
n006=S_0012
n007=@@@
echo : ---------------
echo : get starter-kit
echo : ---------------
pushd Work
md starterkit 2>nul
git clone https://github.com/NNNIC/psgg-starter-kit.git starterkit
pushd starterkit
git rev-parse HEAD > ..\head.txt
popd
for /f %%i in (head.txt) do set rev=%%i
echo : https://github.com/NNNIC/psgg-starter-kit.git %rev%
echo https://github.com/NNNIC/psgg-starter-kit.git %rev% > starterkit\starterkit\starter-kit.txt
echo : done !
popd
%DP%
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=2384,1005
n00e=100026
[s0019]
n002=S_0014
n003=BUILD EDITOR
n006=S_0013
n007=@@@
echo : ------------
echo : build editor
echo : ------------
git rev-parse HEAD > .\head.txt
echo :
echo : get git hash
set hash=
for /f %%i in (head.txt) do if "%hash%"=="" set hash=%%i
echo hash=%hash%
echo public class githash { public readonly string hash="%hash%"; } > m1\StateViewer\StateViewer\githash.cs
echo :
echo : build relase
pushd m1\StateViewer
"%NUGET%" restore StateViewer.sln
"%MSBUILD17%" StateViewer.sln /t:StateViewer:Rebuild /p:Configuration=%CFG%
popd
echo : done!
%DP%
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=2144,1005
n00e=100027
[s001a]
n002=S_BACKTO_000
n00f=pass
n006=S_0006
n00c=@@@
/
(100,100)
The root
@@@
n00d=595,504
n00e=100028
[s001b]
n002=S_0015
n003=CREATE ZIP
n006=S_0006
n007=@@@
robocopy m1\StateViewer\StateViewer\bin\Release Work\archive\zip\StateGo /MIR
del Work\archive\stagego.zip 2>nul
powershell compress-archive -Path Work\archive\zip\StateGo -DestinationPath Work\archive\stagego.zip
echo : Created Zip at %CD%\Work\archive\stagego.zip.
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=906,1276
n00e=100029
[s001c]
n002=S_0016
n003=COPY
n006=S_BACKTO_000
n007=@@@
cd /d %~dp0
set SRC=%CD%
if "%TGT%"=="" set TGT=%SRC%\m1\StateViewer\StateViewer\bin\%CFG%
::_ini
robocopy %SRC%\m1\StateViewer\ini %TGT%\ini /MIR
::_state_images
robocopy %SRC%\Others\state-images %TGT%\state-images /MIR
::_marmaid
robocopy %SRC%\Work\mermaid\psgg-mermaid-flow\psgg2mermaid\bin\%CFG% %TGT%
:::_starterkit
robocopy %SRC%\Work\starterkit\starterkit2 %TGT%\starterkit2 /S /E
::_scintilla
:: copy by msbuild
::_vsopentool
md %TGT%\tools 2>nul
robocopy %SRC%\Work\VisualStudioFileOpenTool %TGT%\tools LICENSE.md
robocopy %SRC%\Work\VisualStudioFileOpenTool\VisualStudioFileOpenTool\bin\%CFG% %TGT%\tools *.*
::_conveter
robocopy %SRC%\Work\conv\psggConverter\psggConverterLib\bin\%CFG% %TGT% *.*
::_setup
copy %SRC%\Others\archivebatch\__setup.bat %TGT%\*.*
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=3155,1005
n00e=100030
[s001d]
n002=S_0017
n003=MD WORK
n006=S_0010
n007=md Work 2>nul
n00c=@@@
/
(100,100)
The root
@@@
n00d=1436,1005
n00e=100031
[s001e]
n002=S_0018
n003=Confirm existing files.
n009=@@@
brifc(S_0020);
brelse(S_0019);
@@@
n00a=@@@
YES
NO
@@@
n00b=@@@
exist "%ProgramFiles(x86)%\PSGG\StateGo.exe"
?
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=910,1587
n00e=100032
[s001f]
n002=S_0019
n006=S_BACKTO_000
n007=@@@
echo : %ProgramFiles(x86)%\PSGG\StateGo.exe not found.
echo : So, Files can not be updated.
pause
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=1220,1739
n00e=100033
[s0020]
n002=S_0020
n006=S_BACKTO_000
n007=@@@
echo : Update...
echo on
robocopy .\m1\StateViewer\StateViewer\bin\Release "%ProgramFiles(x86)%\PSGG" *.* /S /E
@echo off
popd
pause
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=1207,1472
n00e=100034
[s0021]
n002=S_0021
n003=Confirm existing files.
n009=@@@
brifc(S_0022);
brelse(S_0019);
@@@
n00a=@@@
YES
NO
@@@
n00b=@@@
exist "%ProgramFiles(x86)%\PSGG\StateGo.exe"
?
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=915,1771
n00e=100035
[s0022]
n002=S_0022
n006=S_BACKTO_000
n007=@@@
echo : Update...
echo on
robocopy .\m1\StateViewer\StateViewer\bin\Debug "%ProgramFiles(x86)%\PSGG" *.*
@echo off
popd
pause
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=1251,2005
n00e=100036
[s0023]
n002=S_0023
n003=Build Visual Studio open tool
n006=S_0014
n007=@@@
echo : ------------------------------
echo : build VisualStudioFileOpenTool
echo : ------------------------------
md Work\VisualStudioFileOpenTool 2>nul
::git clone https://github.com/aienabled/VisualStudioFileOpenTool Work\VisualStudioFileOpenTool
git clone https://github.com/zhsfei/VisualStudioFileOpenTool2022 Work\VisualStudioFileOpenTool
pushd Work\VisualStudioFileOpenTool
"%MSBUILD17%" AtomicTorch.VisualStudioFileOpenTool.sln /t:Build /p:Configuration=%CFG%
popd
echo : done!
%DP%
@@@
n00c=@@@
/
(100,100)
The root
@@@
n00d=1872,1005
n00e=100037
------#======*<Guid(70C5A739-223A-457D-8AEE-1A0E2050D5AE)>*======#------
sheet=config
###VARIOUS-CONTENTS-BEGIN###
; The setting was created automatically. 2023/01/04 8:14:19
; * pssgEditor version : 0.73.479.5ce28aad6f78c3418f2de7bcf5d8edc440d2427f
psggfile=@@@
BuildControl.psgg
@@@
xlsfile=@@@
BuildControl.xlsx
@@@
guid=@@@
014d285f-288c-4b0b-82bc-a9f99600208d
@@@
bitmap_width=5000
bitmap_height=4000
c_statec_cmt=1
c_thumbnail=1
c_contents=1
force_display_outpin=0
last_action=@@@
varied,Edited a state.
@@@
target_pathdir=@@@
/
@@@
state_location_list=@@@
@@@
nodegroup_comment_list=@@@
[{"Key":"\/","Value":"The root"}]
@@@
nodegroup_pos_list=@@@
[{"Key":"\/","Value":{"x":100,"y":100}}]
@@@
fillter_state_location_list=@@@
[{"Key":"\/","Value":[{"Key":"S_START","Value":{"x":45,"y":41}},{"Key":"S_END","Value":{"x":3270,"y":121}},{"Key":"S_0001","Value":{"x":339,"y":38}},{"Key":"S_0002","Value":{"x":526,"y":35}},{"Key":"S_0000","Value":{"x":157,"y":41}},{"Key":"S_0004","Value":{"x":323,"y":660}},{"Key":"S_0005","Value":{"x":599,"y":208}},{"Key":"S_0006","Value":{"x":637,"y":804}},{"Key":"S_0007","Value":{"x":898,"y":652}},{"Key":"S_0008","Value":{"x":902,"y":935}},{"Key":"S_0009","Value":{"x":905,"y":1086}},{"Key":"S_0010","Value":{"x":1615,"y":1005}},{"Key":"S_0011","Value":{"x":2888,"y":1005}},{"Key":"S_0012","Value":{"x":2644,"y":1005}},{"Key":"S_0013","Value":{"x":2384,"y":1005}},{"Key":"S_0014","Value":{"x":2144,"y":1005}},{"Key":"S_0015","Value":{"x":906,"y":1276}},{"Key":"S_0016","Value":{"x":3155,"y":1005}},{"Key":"S_0017","Value":{"x":1436,"y":1005}},{"Key":"S_0018","Value":{"x":910,"y":1587}},{"Key":"S_0019","Value":{"x":1220,"y":1739}},{"Key":"S_BACKTO_000","Value":{"x":595,"y":504}},{"Key":"S_0020","Value":{"x":1207,"y":1472}},{"Key":"S_0021","Value":{"x":915,"y":1771}},{"Key":"S_0022","Value":{"x":1251,"y":2005}},{"Key":"S_0023","Value":{"x":1872,"y":1005}}]}]
@@@
linecolor_data=@@@
[{"color":{"knownColor":0,"name":null,"state":2,"value":4285493103},"pattern":"BACKTO_"}]
@@@
use_external_command=0
external_command=@@@
@@@
source_editor_set=@@@
@@@
label_show=0
label_text=@@@
test
@@@
option_delete_thisstring=1
option_delete_br_string=1
option_delete_bracket_string=1
option_delete_s_state_string=1
option_copy_output_to_clipboard=0
option_convert_with_confirm=0
option_ignore_case_of_state=0
option_editbranch_automode=1
option_use_custom_prefix=0
option_omit_basestate_string=0
option_hide_basestate_contents=1
option_hide_branchcmt_onbranchbox=0
font_name=@@@
MS UI Gothic
@@@
font_size=11
comment_font_size=0
contents_font_size=0
state_width=140
state_height=20
state_short_width=50
state_short_height=20
comment_block_height=20
content_max_height=200
comment_block_fixed=0
line_space=-1
userbutton_title=@@@
@@@
userbutton_command=@@@
@@@
userbutton_callafterconvert=0
itemeditform_size_list=@@@
[{"Key":"command","Value":{"height":955,"width":1420}},{"Key":"state-cmt","Value":{"height":398,"width":564}}]
@@@
decoimage_typ_name=@@@
sym
@@@
use_donotedit_mark=0
donotedit_mark_columns=@@@
76,116,136
@@@
donotedit_mark=@@@
*DoNotEdit*
@@@
###VARIOUS-CONTENTS-END###
------#======*<Guid(70C5A739-223A-457D-8AEE-1A0E2050D5AE)>*======#------
sheet=template-source
###VARIOUS-CONTENTS-BEGIN###
###VARIOUS-CONTENTS-END###
------#======*<Guid(70C5A739-223A-457D-8AEE-1A0E2050D5AE)>*======#------
sheet=template-statefunc
###VARIOUS-CONTENTS-BEGIN###
<<<?state/^C_/
eof>>>
::
:[[state]]
::
:: [[state-cmt]]
::
<<<?state/^E_/
[[embed]]
eof>>>
<<<?state-typ/^start$/
goto :[[nextstate]]
eof>>>
<<<?state-typ/^end$/
[[command]]
goto :_end
eof>>>
<<<?state-typ/^gosub$/
set CALLSTACK_%STACKNUM%=[[nextstate]]
set /a STACKNUM=%STACKNUM%+1
goto :[[gosubstate]]
eof>>>
<<<?state-typ/^subreturn$/
set /a STACKNUM=%STACKNUM%-1
set CALLSTACK_%STACKNUM% >~tmp.txt
set _tmp=
for /f "tokens=1,2 delims==" %%i in (~tmp.txt) do set _tmp=%%j
set CALLSTACK_%STACKNUM%=
del ~tmp.txt 2>nul
goto :%_tmp%
eof>>>
<<<?state-typ/^loop$/
[[loop_init]]
goto :[[state]]_LoopCheckAndGosub____
:[[state]]_LoopCheckAndGosub____
if [[loop_cond]] (
set CALLSTACK_%STACKNUM%=[[state]]_LoopNext____
set /a STACKNUM=%STACKNUM%+1
goto :[[gosubstate]]
) ELSE (
goto :[[nextstate]]
)
:[[state]]_LoopNext____
[[loop_next]]
goto :[[state]]_LoopCheckAndGosub____
eof>>>
[[command]]
[[branch]]
<<<?nextstate
goto :[[nextstate]]
>>>
goto :[[state]]
###VARIOUS-CONTENTS-END###
------#======*<Guid(70C5A739-223A-457D-8AEE-1A0E2050D5AE)>*======#------
sheet=setting.ini
###VARIOUS-CONTENTS-BEGIN###
[setting]
psgg=BuildControl.psgg
xls=BuildControl.xlsx
sub_src=
gen_src=BuildControl.bat
manager_src=
manager_dir=
template_src=
template_func=template-statefunc.txt
help=
helpweb=starterkit2\win-bat\helpweb.html
src_enc=sjis
kitpath=starterkit2\win-bat
[setupinfo]
starterkit=@@@
https://github.com/NNNIC/psgg-starter-kit.git 8e411ee9d8a7b0d44485bf03546b59220da6cd14
@@@
lang=bat
framework=window
statemachine=BuildControl
prefix=__PREFIX__
xlsdir=@@@
C:\Users\gea01\Documents\psgg\psgg-editor-public\editor
@@@
gendir=@@@
C:\Users\gea01\Documents\psgg\psgg-editor-public\editor
@@@
genrdir=.
incrdir=.
code_output_start=[PSGG OUTPUT START]
code_output_end=[PSGG OUTPUT END]
[jpn]
title=Windows バッチ スタートキット 2019/11/17
detail=@@@
Windows バッチ用のステートマシンを作成します。
※サンプルプロジェクトを次のURLより入手可能。
https://github.com/NNNIC/psgg-win-batch
# 以下のファイルを作成します。
BuildControl.pssg --- StateGo データ ファイル
BuildControl.bat --- 変換ソースコード
@@@
[en]
title=Windows Batch STARTER KIT 2019/11/17
detail=@@@
This dialog will create files for a state machine.
* You may get the sample project from the below url.
https://github.com/NNNIC/psgg-win-batch
# File:
BuildControl.pssg --- StateGo Data File.
BuildControl.bat --- Converted Souece File.