summary refs log tree commit diff stats
path: root/win32/deps/gtk/release-x86.bat
blob: a759cddbdc2e1056dc9097e88e8b60852ade2113 (plain) (blame)
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
32
:: run this from a command prompt
@echo off

SET PACKAGE_NAME=gtk-2.24.13

set GTK_SRC=%cd%
set GTK_DEST=%cd%-rel
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
)
cd ..
echo.Press return when ready to install!
pause

copy COPYING %GTK_DEST%\LICENSE.GTK

cd %GTK_DEST%
set PATH=%PATH%;%ProgramFiles%\7-zip
del ..\%PACKAGE_NAME%-x86.7z
7z a ..\%PACKAGE_NAME%-x86.7z *
cd %GTK_SRC%
rmdir /q /s %GTK_DEST%

echo.Finished!
pause