Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 66202e30 authored by Joachim Eibl's avatar Joachim Eibl

Destination path as optional second parameter, when first parameter is "local".

git-svn-id: https://kdiff3.svn.sourceforge.net/svnroot/kdiff3/trunk@158 c8aa9fed-2811-0410-8543-893ada326672
parent 1536a29c
......@@ -24,12 +24,19 @@
export LANG=en_US.UTF-8
echo "Create qm files (KDiff3 translation files for the qt-only version)"
if [ "$1" = "local" ]; then
for i in `ls` ; do
if ["$2" = ""]; then
path=.
else
path=$2
fi
echo "destination: $path"
for i in `ls ` ; do
if [ -s $i/kdiff3.po ]; then
# (msg2qm is from "qt3-devel-tools"-package.)
echo Creating ./kdiff3_$i.qm
#/usr/lib/qt3/bin/msg2qm $i/kdiff3.po kdiff3_$i.qm
lconvert -if po -of qm -o kdiff3_$i.qm $i/kdiff3.po
lconvert -if po -of qm -o $path/kdiff3_$i.qm $i/kdiff3.po
fi
done
elif [ "$1" = "install" ]; then
......@@ -42,7 +49,7 @@ elif [ "$1" = "install" ]; then
fi
done
else
echo Usage 1: sh create_qm_files local
echo Usage 2: sh create_qm_files install
echo "Usage 1: sh create_qm_files local <destination> (if empty current is used)"
echo "Usage 2: sh create_qm_files install"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment