-
Notifications
You must be signed in to change notification settings - Fork 14
/
pack_vpk.bat
36 lines (31 loc) · 905 Bytes
/
pack_vpk.bat
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
@echo off
:: starting
echo preparing folder structure
mkdir cleantf2 > nul 2> nul
move cfg cleantf2\ > nul 2> nul
move materials cleantf2\ > nul 2> nul
move models cleantf2\ > nul 2> nul
move scripts cleantf2\ > nul 2> nul
:: generating readme
copy dev\ref\vpk.txt cleantf2\readme.txt > nul 2> nul
echo.>> cleantf2\readme.txt
echo.>> cleantf2\readme.txt
echo Current Options:>> cleantf2\readme.txt
type dev\current_options.txt >> cleantf2\readme.txt
:: creating vpk
echo creating vpk
..\..\..\bin\vpk.exe -M cleantf2 > nul 2> nul
:: moving vpk files
echo moving vpk files
move cleantf2_*.vpk ..
:: regenerating folder structure
echo regenerating folder structure
del cleantf2\readme.txt > nul 2> nul
move cleantf2\cfg .\ > nul 2> nul
move cleantf2\materials .\ > nul 2> nul
move cleantf2\models .\ > nul 2> nul
move cleantf2\scripts .\ > nul 2> nul
rmdir cleantf2 > nul 2> nul
:: done
echo done
pause