More fixes

This commit is contained in:
ea4k 2021-08-31 16:38:18 +02:00
parent 0813864274
commit 43e0428e47
3 changed files with 18 additions and 18 deletions

View File

@ -41,19 +41,19 @@ QTDIRi=$HOME"/Qt/5.15.2/clang_64"
rm -Rf KLog.app
rm -Rf build
/usr/bin/make clean
$QTDIRi/bin/qmake src.pro -spec macx-clang CONFIG+=x86_64
"$QTDIRi"/bin/qmake src.pro -spec macx-clang CONFIG+=x86_64
/usr/bin/make
mv build/target/klog.app KLog.app
mkdir -p KLog.app/Contents/PlugIns/sqldrivers
cp $QTDIRi/plugins/sqldrivers/libqsqlite.dylib KLog.app/Contents/PlugIns/sqldrivers
cp "$QTDIRi"/plugins/sqldrivers/libqsqlite.dylib KLog.app/Contents/PlugIns/sqldrivers
mkdir -p KLog.app/Contents/MacOS/translations
$QTDIRi/bin/lupdate src.pro
$QTDIRi/bin/lrelease src.pro
cp $KLOG_SOURCES/translations/*.qm KLog.app/Contents/MacOS/translations/
cp "$KLOG_SOURCES"/translations/*.qm KLog.app/Contents/MacOS/translations/
cp /usr/local/lib/libhamlib.4.dylib KLog.app/Contents/MacOS/
chmod +w KLog.app/Contents/MacOS/libhamlib.4.dylib
install_name_tool -id @executable_path/libhamlib.4.dylib KLog.app/Contents/MacOS/libhamlib.4.dylib
install_name_tool -change /usr/local/lib/libhamlib.4.dylib @executable_path/libhamlib.4.dylib KLog.app/Contents/MacOS/klog
$QTDIRi/bin/macdeployqt KLog.app/ -dmg
mv KLog.dmg KLog-$KLOG_VERSION.dmg
"$QTDIRi"/bin/macdeployqt KLog.app/ -dmg
mv KLog.dmg KLog-"$KLOG_VERSION".dmg
echo "You can find the dmg file in this folder... enjoy KLog!"

View File

@ -34,8 +34,8 @@ export QT_SELECT="qt5"
for file in $POFILES/*.po
do
echo Checking $file
NEWNAME=`echo $file |sed 's:^../po/::'`
echo Checking "$file"
NEWNAME=`echo "$file" |sed 's:^../po/::'`
echo $NEWNAME
msgfmt -o /dev/null --statistics $file
@ -59,10 +59,10 @@ echo "ja: "; msgfmt -o /dev/null --statistics $POFILES/klog_ja.po
#lconvert -if po -of ts -i $POFILES/klog_ja.ts -o $TRANSLATIONS/klog_ja.po
for file in $POFILES/*.po
do
echo Importing $file
echo Importing "$file"
#echo "../po/klog_es.po" | sed 's:^\.\./po/::'
NEWNAME=`echo $file |sed 's:^po/::' `
NEWNAME=`echo "$file" |sed 's:^po/::' `
echo $NEWNAME
lconvert -if po -of ts -i $file -o $TRANSLATIONS/${NEWNAME%.po}.ts
lconvert -if po -of ts -i "$file" -o "$TRANSLATIONS"/${NEWNAME%.po}.ts
done

View File

@ -35,11 +35,11 @@ lupdate -no-obsolete $SOURCES/src.pro
for file in $TRANSLATIONS/*.ts
do
echo Exporting $file
NEWNAME=`echo $file |sed 's:^../ts/::'`
echo $NEWNAME
lconvert -if ts -of po -i $file -o ${NEWNAME%.ts}.po
mv ${NEWNAME%.ts}.po $POFILES
echo Exporting "$file"
NEWNAME=`echo "$file" |sed 's:^../ts/::'`
echo "$NEWNAME"
lconvert -if ts -of po -i "$file" -o ${NEWNAME%.ts}.po
mv ${NEWNAME%.ts}.po "$POFILES"
done
mv $POFILES/klog_en.po $POFILES/klog.pot
@ -52,10 +52,10 @@ echo; echo;
echo "Statistics of the po files"
echo
for file2 in $POFILES/*.po
for file2 in "$POFILES"/*.po
do
echo Analizing $file2
msgfmt -o /dev/null --statistics $file2
echo Analizing "$file2"
msgfmt -o /dev/null --statistics "$file2"
done