From 4b0b7853103435d005c2013b925c6e3fc60402a6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 26 May 2012 23:01:52 +0000 Subject: projects cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExtraIcons/ZIP/doit.bat | 97 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 plugins/ExtraIcons/ZIP/doit.bat (limited to 'plugins/ExtraIcons/ZIP') diff --git a/plugins/ExtraIcons/ZIP/doit.bat b/plugins/ExtraIcons/ZIP/doit.bat new file mode 100644 index 0000000000..2f5615d126 --- /dev/null +++ b/plugins/ExtraIcons/ZIP/doit.bat @@ -0,0 +1,97 @@ +@echo off + +rem Batch file to build and upload files +rem +rem TODO: Integration with FL + +set name=extraicons + +rem To upload, this var must be set here or in other batch +rem set ftp=ftp://:@/ + +echo Building %name% ... + +msdev ..\%name%.dsp /MAKE "%name% - Win32 Release" /REBUILD + +echo Generating files for %name% ... + +del *.zip +del *.dll +copy ..\Docs\%name%_changelog.txt +copy ..\Docs\%name%_version.txt +copy ..\Docs\%name%_readme.txt +copy ..\Docs\%name%.png +mkdir Docs +cd Docs +del /Q *.* +copy ..\..\Docs\langpack_%name%.txt +copy ..\..\m_%name%.h +cd .. +mkdir Plugins +cd Plugins +cd .. +mkdir src +cd src +del /Q *.* +copy ..\..\*.h +copy ..\..\*.cpp +copy ..\..\*. +copy ..\..\*.rc +copy ..\..\*.dsp +copy ..\..\*.dsw +mkdir Docs +cd Docs +del /Q *.* +copy ..\..\..\Docs\*.* +cd .. +mkdir sdk +cd sdk +del /Q *.* +copy ..\..\..\sdk\*.* +cd .. +cd .. + +cd Plugins +copy "..\..\..\..\bin\release\Plugins\%name%.dll" +cd .. + +"C:\Program Files\Filzip\Filzip.exe" -a -rp %name%.zip %name%.dll Docs Plugins + +"C:\Program Files\Filzip\Filzip.exe" -a -rp %name%_src.zip src + +del *.dll +cd Docs +del /Q *.* +cd .. +rmdir Docs +cd Plugins +del /Q *.* +cd .. +rmdir Plugins +cd src +del /Q *.* +cd Docs +del /Q *.* +cd .. +rmdir Docs +cd sdk +del /Q *.* +cd .. +rmdir sdk +cd .. +rmdir src + +if "%ftp%"=="" GOTO END + +echo Going to upload files... +pause + +"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%.zip %ftp% -overwrite -close +"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_changelog.txt %ftp% -overwrite -close +"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_version.txt %ftp% -overwrite -close +"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%_readme.txt %ftp% -overwrite -close +"C:\Program Files\FileZilla\FileZilla.exe" -u .\%name%.png %ftp% -overwrite -close + +:END + +echo Done. -- cgit v1.2.3