1
+ For %%A in (
2
+ " "
3
+ " /_/\_ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY"
4
+ " KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE"
5
+ " WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE"
6
+ " AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT"
7
+ " HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,"
8
+ " WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,"
9
+ " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER"
10
+ " DEALINGS IN THE SOFTWARE. _/\_/"
11
+ " "
12
+ " #include <stdio.h>"
13
+ " #include <string.h>"
14
+ " #include <stdlib.h>"
15
+ " "
16
+ " #ifdef WIN32"
17
+ " #include <windows.h>"
18
+ " #else"
19
+ " #include <unistd.h>"
20
+ " #endif"
21
+ " "
22
+ " char ver[] ^= ^" 1.0^ " ;"
23
+ " char name[] ^= ^" !_Name! ^ " ;"
24
+ " "
25
+ " /_/\_ This program is distributed under the following license: (SELECT A LICENSE)"
26
+ " "
27
+ " ================================================================================"
28
+ " Apache License 2.0 - https://opensource.org/licenses/Apache-2.0"
29
+ " BSD 3-Clause 'New' or 'Revised' license - https://opensource.org/licenses/BSD-3-Clause"
30
+ " BSD 2-Clause 'Simplified' or 'FreeBSD' license - https://opensource.org/licenses/BSD-2-Clause"
31
+ " GNU General Public License (GPL) - https://opensource.org/licenses/gpl-license"
32
+ " GNU Library or 'Lesser' General Public License (LGPL) - https://opensource.org/licenses/lgpl-license"
33
+ " MIT license - https://opensource.org/licenses/MIT"
34
+ " Mozilla Public License 2.0 - https://opensource.org/licenses/MPL-2.0"
35
+ " Common Development and Distribution License - https://opensource.org/licenses/CDDL-1.0"
36
+ " Eclipse Public License version 2.0 - https://opensource.org/licenses/EPL-2.0"
37
+ " ================================================================================"
38
+ " "
39
+ " "
40
+ " ================= ABOUT THE PROGRAM ================="
41
+ " This program is created by !_Author! at '!date! - !time:~0 ,-6 ! '"
42
+ " This program can _______________________________________________________"
43
+ " Use '/\/\' for getting help for this."
44
+ " For More Visit: www.batch-man.com _/\_/"
45
+ " "
46
+ " "
47
+ " void Help^(^)"
48
+ " {"
49
+ " printf^( _\/_\n"
50
+ " This function will _______________________________________________________ \n"
51
+ " It will help in __________________________________________________________ \n"
52
+ " CREDITS: %%s %%s by !_Author! \n"
53
+ " \n"
54
+ " Syntax: call %%s [] [] [] [] [] [] [] [] [] \n"
55
+ " Syntax: call %%s [help , /\/\ , -h , -help] \n"
56
+ " Syntax: call %%s ver \n"
57
+ " \n"
58
+ " Where:- \n"
59
+ " \n"
60
+ " ver : Displays version of program \n"
61
+ " help : Displays help for the program \n"
62
+ " [] : __________________________________________________________ \n"
63
+ " [] : __________________________________________________________ \n"
64
+ " \n"
65
+ " Example: %%s [] [] [] [] [] [] [] [] [] \n"
66
+ " \n"
67
+ " Now, you can __________________________________________________________ \n"
68
+ " _________________. \n"
69
+ " \n"
70
+ " Libraries required for this project: \n"
71
+ " _________________ \n"
72
+ " _\/_, name, ver, name, name, name, name, name, name^);"
73
+ " return;"
74
+ " }"
75
+ " "
76
+ " "
77
+ " int main^(int argc, char _/\_argv[]^)"
78
+ " {"
79
+ " if ^(argc ^< 2 ^|^| not^(strcmp^(argv[1]^, ^" --help^ " ^)^) ^|^| not^(strcmp^(argv[1]^, ^" -h^ " ^)^) ^|^| not^(strcmp^(argv[1]^, ^" /\/\^ " ^)^)^)"
80
+ " {"
81
+ " Help^(^);"
82
+ " return EXIT_SUCCESS;"
83
+ " }"
84
+ " "
85
+ " if ^(not^(strcmp^(argv[1], _\/_ver_\/_^)^)^)"
86
+ " {"
87
+ " printf(_\/_%%s _\/_,ver);"
88
+ " return EXIT_SUCCESS;"
89
+ " }"
90
+ " "
91
+ " // Main program"
92
+ " "
93
+ " "
94
+ " return EXIT_SUCCESS;"
95
+ " "
96
+ " }"
97
+ " "
98
+ ) do (
99
+
100
+ REM Fixing a Bug with Generation of '?' and '*' symbol in files via script...
101
+ Set " _Line = %%~A "
102
+ if Defined _Line (
103
+ Set " _Line = !_Line:\/\ =? ! "
104
+ Set " _Line = !_Line:_/\_ =* ! "
105
+ Set " _Line = !_Line:_\/_ =" ! "
106
+ )
107
+ Echo .!_Line! >> " !_Name! .C"
108
+ )
0 commit comments