1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-24 16:48:52 -05:00
hexchat/win32/deps/gtk/release-x64.bat

35 lines
781 B
Batchfile
Raw Normal View History

2012-10-02 07:53:54 -04:00
:: run this from a command prompt
@echo off
SET PACKAGE_NAME=gtk-2.24.13
set GTK_SRC=%cd%
set GTK_DEST=%cd%-rel
2012-10-02 14:38:08 -04:00
set MSGFMT_PATH=..\..\msgfmt
:: we'll go 1 level deeper
set PATH=%PATH%;..\%MSGFMT_PATH%
rmdir /q /s "%GTK_DEST%\share\locale"
mkdir "%GTK_DEST%\share\locale"
cd po
for %%A in (*.po) do (
mkdir "%GTK_DEST%\share\locale\%%~nA\LC_MESSAGES"
"msgfmt" -co "%GTK_DEST%\share\locale\%%~nA\LC_MESSAGES\gtk20.mo" %%A
)
2012-10-03 10:31:24 -04:00
mkdir "%GTK_DEST%\share\doc
mkdir "%GTK_DEST%\share\doc\gtk
2012-10-02 14:38:08 -04:00
cd ..
2012-10-02 07:53:54 -04:00
echo.Press return when ready to install!
pause
2012-10-03 10:31:24 -04:00
copy COPYING %GTK_DEST%\share\doc\gtk
2012-10-02 07:53:54 -04:00
cd %GTK_DEST%
set PATH=%PATH%;%ProgramFiles%\7-zip
del ..\%PACKAGE_NAME%-x64.7z
7z a ..\%PACKAGE_NAME%-x64.7z *
cd %GTK_SRC%
rmdir /q /s %GTK_DEST%
echo.Finished!
pause