dev/c/gettext_lib_cmake/util/gcc_test.sh

19 lines
584 B
Bash
Executable File

#!/bin/bash
rm -rf build-gcc
mkdir build-gcc && cd build-gcc && cmake -DCMAKE_C_FLAGS="-DLOCALEDIR" .. && make
[ 0 != $? ] && echo "make failed ;-(" && exit 1
mkdir -p src/locale/ru/LC_MESSAGES
mkdir -p src/locale/it/LC_MESSAGES
cp po/ru/gettextex2.gmo src/locale/ru/LC_MESSAGES/gettextex2.mo
cp po/it/gettextex2.gmo src/locale/it/LC_MESSAGES/gettextex2.mo
mkdir -p run/locale/ru/LC_MESSAGES
mkdir -p run/locale/it/LC_MESSAGES
cp po/ru/gettextex2.gmo run/locale/ru/LC_MESSAGES/gettextex2.mo
cp po/it/gettextex2.gmo run/locale/it/LC_MESSAGES/gettextex2.mo
cd run
./gettextex2_test