@echo off
echo a
del /s/q/f build-msvc
rmdir /s/q build-msvc
mkdir build-msvc
cd build-msvc
cmake -G "NMake Makefiles" -DCMAKE_C_FLAGS="-Ic:/usr/include" ..
nmake
mkdir run\locale
mkdir run\locale\ru
mkdir run\locale\ru\LC_MESSAGES
mkdir run\locale\it
mkdir run\locale\it\LC_MESSAGES
copy po\ru\gettextex1.gmo run\locale\ru\LC_MESSAGES\gettextex1.mo
copy po\it\gettextex1.gmo run\locale\it\LC_MESSAGES\gettextex1.mo
cd run
gettextex1.exe
cd ..\..
