:: run this from a command prompt
@echo off

SET PACKAGE_NAME=freetype-2.4.10

set FREETYPE_SRC=%cd%
set FREETYPE_DEST=%cd%-x64
echo.Press return when ready to install!
pause

rmdir /q /s %FREETYPE_DEST%
mkdir %FREETYPE_DEST%
mkdir %FREETYPE_DEST%\include
mkdir %FREETYPE_DEST%\lib
mkdir %FREETYPE_DEST%\share
mkdir %FREETYPE_DEST%\share\doc
mkdir %FREETYPE_DEST%\share\doc\freetype
xcopy /s include %FREETYPE_DEST%\include\
copy builds\win32\vc10\x64\Release\freetype2410.lib %FREETYPE_DEST%\lib\freetype.lib
copy docs\LICENSE.TXT %FREETYPE_DEST%\share\doc\freetype\COPYING

cd %FREETYPE_DEST%
set PATH=%PATH%;%ProgramFiles%\7-zip
del ..\%PACKAGE_NAME%-x64.7z
7z a ..\%PACKAGE_NAME%-x64.7z *
cd %FREETYPE_SRC%
rmdir /q /s %FREETYPE_DEST%

echo.Finished!
pause
