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

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 @@ ...@@ -24,12 +24,19 @@
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
echo "Create qm files (KDiff3 translation files for the qt-only version)" echo "Create qm files (KDiff3 translation files for the qt-only version)"
if [ "$1" = "local" ]; then 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 if [ -s $i/kdiff3.po ]; then
# (msg2qm is from "qt3-devel-tools"-package.) # (msg2qm is from "qt3-devel-tools"-package.)
echo Creating ./kdiff3_$i.qm echo Creating ./kdiff3_$i.qm
#/usr/lib/qt3/bin/msg2qm $i/kdiff3.po 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 fi
done done
elif [ "$1" = "install" ]; then elif [ "$1" = "install" ]; then
...@@ -42,7 +49,7 @@ elif [ "$1" = "install" ]; then ...@@ -42,7 +49,7 @@ elif [ "$1" = "install" ]; then
fi fi
done done
else else
echo Usage 1: sh create_qm_files local echo "Usage 1: sh create_qm_files local <destination> (if empty current is used)"
echo Usage 2: sh create_qm_files install echo "Usage 2: sh create_qm_files install"
fi 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