-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathmakeRelease.bat
31 lines (30 loc) · 1.22 KB
/
makeRelease.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
@echo off
echo Please input release version:
set /P version=
echo Start to Copy the Example......
copy "Example\example.tex" "Release\Example\"
copy "Example\example.pdf" "Release\Example\"
copy "Example\Bibs\*.bib" "Release\Example\Bibs\"
copy "Example\Figures\*" "Release\Example\Figures\"
copy "Example\HustGraduPaper.cls" "Release\Example\"
copy "Example\gbt7714-2005.bst" "Release\Example\"
copy "Example\gbt7714-2015.bst" "Release\Example\"
copy "Example\HUSTBlack.eps" "Release\Example\"
copy "Example\HUSTGreen.eps" "Release\Example\"
echo Example Copied!
echo.
echo Start to Copy the Template......
copy "Example\HustGraduPaper.cls" "Release\Template\"
copy "Example\gbt7714-2005.bst" "Release\Template\"
copy "Example\gbt7714-2015.bst" "Release\Template\"
copy "Example\HUSTBlack.eps" "Release\Template\"
copy "Example\HUSTGreen.eps" "Release\Template\"
echo Template Copied!
echo.
echo Start to Copy the Instruction......
copy "Instruction\HGP.pdf" "Release\ʹÓÃ˵Ã÷.pdf"
echo Instruction Copied
echo.
echo Compressing......
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('Release', 'Version\HustGraduPaper.%version%.zip'); }"
echo ALL DONE!