From 3ae2505e90a4b9f81930e1cb8c0bae11e3d30932 Mon Sep 17 00:00:00 2001 From: waker Date: Wed, 4 May 2011 22:26:33 +0200 Subject: added localization support to portable/static builds --- scripts/portable_build.sh | 2 +- scripts/portable_postbuild.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/portable_build.sh b/scripts/portable_build.sh index c3e396fc..45218e31 100755 --- a/scripts/portable_build.sh +++ b/scripts/portable_build.sh @@ -7,7 +7,7 @@ export APBUILD_STATIC_LIBGCC=1 export CC=$ORIGIN/tools/apbuild/apgcc export CXX=$ORIGIN/tools/apbuild/apgcc -./configure --enable-staticlink --enable-portable --disable-nls --disable-artwork-imlib2 +./configure --enable-staticlink --enable-portable --disable-artwork-imlib2 sed -i 's/-lstdc++ -lm -lgcc_s -lc -lgcc_s/-lm -lc/g' libtool make clean make -j9 diff --git a/scripts/portable_postbuild.sh b/scripts/portable_postbuild.sh index 0ed1a186..76268386 100755 --- a/scripts/portable_postbuild.sh +++ b/scripts/portable_postbuild.sh @@ -64,6 +64,14 @@ done # icon cp ./icons/32x32/deadbeef.png $OUTDIR/ +# translations +mkdir -p $OUTDIR/locale +for i in po/*.gmo ; do + base=`basename po/$i .gmo` + mkdir -p $OUTDIR/locale/$base/LC_MESSAGES + cp $i $OUTDIR/locale/$base/LC_MESSAGES/deadbeef.mo +done + # strip if [ $OSTYPE != 'Darwin' ];then strip --strip-unneeded $OUTDIR/deadbeef -- cgit v1.2.3