aboutsummaryrefslogtreecommitdiff
path: root/files/batch-compiler-spec/Source_Batch.bci
blob: 792329a0b28a0ec9531d02f37ffa5566af1091fb (plain) (blame)
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
// Specification: Source Batch
// Written by: Ryan Gregg
// Version: N/A
// Created: November 5, 2004
// Last updated: December 1, 2004

// Updated by: Ryan Gregg
// Date: December 1, 2004
// Added Batch Batch.
// Added Ouput variable.

Variable
{
  Name		"Output"
  Type		"Folder"
  Optional	"False"
  Hint		"File output directory."
}

Batch
{
  Name		"Batch"
  Priority	"1"
  Stages	"Batch"
  Template	"@echo off\n"_
  		"${StageCmd=Batch}\n"
}

//
// Batch
//
Stage
{
  Name		"Batch"
  Title		"Batch Operations"
  Type		"CommandList"

  //
  // Recommended File Deletions
  //

  LabelBox
  {
    Name	"Recommended File Deletions:"
    Bold	"True"
  }

  CheckBox
  {
    Name	"Delete .PRT After Compile"
    Param	"if not exist \"${FilePath}\\${FileName}.prt\" goto nodelprt\n"_
    		"del \"${FilePath}\\${FileName}.prt\"\n"_
    		"echo ${FilePath}\\${FileName}.prt deleted.\n"_
    		":nodelprt"
  }

  Space
  {
    Size	"9"
  }

  //
  // Recommended File Functions
  //

  LabelBox
  {
    Name	"Recommended File Functions:"
    Bold	"True"
  }

  CheckBox
  {
    Name	"Copy .BSP After Compile"
    Bold	"True"
    Param	"if not exist \"${FilePath}\\${FileName}.bsp\" goto nocopybsp\n"_
    		"copy \"${FilePath}\\${FileName}.bsp\" \"${Output}\"\n"_
    		"echo ${FileName}.bsp copied to ${Output}.\n"_
    		":nocopybsp"
    Hint	"\tCopy your .BSP file to your map destination folder."
  }

  CheckBox
  {
    Name	"Copy .LIN After Compile"
    Param	"if not exist \"${FilePath}\\${FileName}.lin\" goto nocopylin\n"_
    		"copy \"${FilePath}\\${FileName}.lin\" \"${Output}\"\n"_
    		"echo ${FileName}.lin copied to ${Output}.\n"_
    		":nocopylin"
    Hint	"\tCopy your .LIN file to your map destination folder."
  }

  Space
  {
    Size	"8"
  }

  //
  // Unrecommended File Deletions
  //

  LabelBox
  {
    Name	"Unrecommended File Deletions:"
    Bold	"True"
  }

  CheckBox
  {
    Name	"Delete .BSP After Compile"
    Param	"if not exist \"${FilePath}\\${FileName}.bsp\" goto nodelbsp\n"_
    		"del \"${FilePath}\\${FileName}.bsp\"\n"_
    		"echo ${FilePath}\\${FileName}.bsp deleted.\n"_
    		":nodelbsp"
    Hint	"\tNote: If you delete this file without copying it you won't be able to play your bsp file."
  }

  CheckBox
  {
    Name	"Delete .GL After Compile"
    Param	"if not exist \"${FilePath}\\${FileName}.gl\" goto nodelgl\n"_
    		"del \"${FilePath}\\${FileName}.gl\"\n"_
    		"echo ${FilePath}\\${FileName}.gl deleted.\n"_
    		":nodelgl"
  }

  CheckBox
  {
    Name	"Delete .LIN After Compile"
    Param	"if not exist \"${FilePath}\\${FileName}.lin\" goto nodellin\n"_
    		"del \"${FilePath}\\${FileName}.lin\"\n"_
    		"echo ${FilePath}\\${FileName}.lin deleted.\n"_
    		":nodellin"
    Hint	"\tNote: If you delete this file without copying it you won't be able to view the compiler's lin file."
  }

  CheckBox
  {
    Name	"Delete .LOG After Compile"
    Param	"if not exist \"${FilePath}\\${FileName}.log\" goto nodellog\n"_
    		"del \"${FilePath}\\${FileName}.log\"\n"_
    		"echo ${FilePath}\\${FileName}.log deleted.\n"_
    		":nodellog"
    Hint	"\tNote: If you delete this file you won't be able to view the compiler's log file."
  }

  CheckBox
  {
    Name	"Delete .VMF After Compile"
    Param	"if not exist \"${FilePath}\\${FileName}.vmf\" goto nodelvmf\n"_
    		"del \"${FilePath}\\${FileName}.vmf\"\n"_
    		"echo ${FilePath}\\${FileName}.vmf deleted.\n"_
    		":nodelvmf"
  }
}