root/plugins/QAutoCompleteTextBox/tools/make_package.bat

Revision 253, 0.9 KB (checked in by alex94040, 3 years ago)

Initial checkin of the Auto Complete Text Box plugin.

Line 
1@echo off
2@REM from http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/
3@REM Sets up the %date variable
4@REM First parses month, day, and year into mm , dd, yyyy formats and then combines to be YYYY_MM_DD
5
6FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
7FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET mm=%%B
8FOR /F "TOKENS=1,2 DELIMS=/ eol=/" %%A IN ('echo %CDATE%') DO SET dd=%%B
9FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('echo %CDATE%') DO SET yyyy=%%B
10SET date=%yyyy%_%mm%_%dd%
11
12cp -r ../source ../releases
13cd ../releases/source
14
15echo Deleting .svn files from the re-distributable..
16for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *svn') do (
17rd /s /q "%%i"
18)
19
20echo Creating a zip archive..
21SET filename=%date%.zip
22zip -q -r %filename% *
23mv %filename% ../
24cd ..
25
26echo Cleaning up..
27rm -rf source
28
29echo.
30echo All done, saved as %filename%
31echo.
32pause
Note: See TracBrowser for help on using the browser.