Skip to content

Commit

Permalink
update tr, remove liteide_tr.ts qt tools error process
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Mar 21, 2016
1 parent 853b7fa commit 52dfce9
Show file tree
Hide file tree
Showing 15 changed files with 577 additions and 571 deletions.
184 changes: 92 additions & 92 deletions build/build_linux.sh
Original file line number Diff line number Diff line change
@@ -1,92 +1,92 @@
#!/bin/sh

export BUILD_ROOT=$PWD

if [ -z $LITEIDE_ROOT ]; then
export LITEIDE_ROOT=$PWD/../liteidex
fi

echo build liteide
echo QTDIR=$QTDIR
echo GOROOT=$GOROOT
echo BUILD_ROOT=$BUILD_ROOT
echo LITEIDE_ROOT=$LITEIDE_ROOT
echo .

if [ -z $QTDIR ]; then
echo 'error, QTDIR is null'
exit 1
fi

export PATH=$QTDIR/bin:$PATH

echo qmake liteide ...
echo .
qmake $LITEIDE_ROOT -spec linux-g++ "CONFIG+=release"

if [ $? -ge 1 ]; then
echo 'error, qmake fail'
exit 1
fi

echo make liteide ...
echo .
make

if [ $? -ge 1 ]; then
echo 'error, make fail'
exit 1
fi

go version
if [ $? -ge 1 ]; then
echo 'error, not find go in PATH'
exit 1
fi

echo build liteide tools ...
cd $LITEIDE_ROOT

if [ -z $GOPATH ]; then
export GOPATH=$PWD
else
export GOPATH=$PWD:$GOPATH
fi

go install -ldflags "-s" -v github.com/visualfc/gotools

if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi

go install -ldflags "-s" -v github.com/nsf/gocode

if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi

echo deploy ...

cd $BUILD_ROOT

rm -r liteide
mkdir -p liteide
mkdir -p liteide/bin
mkdir -p liteide/share/liteide
mkdir -p liteide/lib/liteide/plugins

cp -a -v $LITEIDE_ROOT/LICENSE.LGPL liteide
cp -a -v $LITEIDE_ROOT/LGPL_EXCEPTION.TXT liteide
cp -a -v $LITEIDE_ROOT/../README.md liteide
cp -a -v $LITEIDE_ROOT/../CONTRIBUTORS liteide

cp -a -v $LITEIDE_ROOT/liteide/bin/* liteide/bin
cp -a -v $LITEIDE_ROOT/bin/gotools liteide/bin
cp -a -v $LITEIDE_ROOT/bin/gocode liteide/bin
cp -a -v $LITEIDE_ROOT/liteide/lib/liteide/libliteapp.* liteide/lib/liteide
cp -a -v $LITEIDE_ROOT/liteide/lib/liteide/plugins/*.so liteide/lib/liteide/plugins

cp -r -v $LITEIDE_ROOT/deploy/* liteide/share/liteide/
cp -r -v $LITEIDE_ROOT/os_deploy/linux/* liteide/share/liteide/
#!/bin/sh

export BUILD_ROOT=$PWD

if [ -z $LITEIDE_ROOT ]; then
export LITEIDE_ROOT=$PWD/../liteidex
fi

echo build liteide
echo QTDIR=$QTDIR
echo GOROOT=$GOROOT
echo BUILD_ROOT=$BUILD_ROOT
echo LITEIDE_ROOT=$LITEIDE_ROOT
echo .

if [ -z $QTDIR ]; then
echo 'error, QTDIR is null'
exit 1
fi

export PATH=$QTDIR/bin:$PATH

echo qmake liteide ...
echo .
qmake $LITEIDE_ROOT -spec linux-g++ "CONFIG+=release"

if [ $? -ge 1 ]; then
echo 'error, qmake fail'
exit 1
fi

echo make liteide ...
echo .
make

if [ $? -ge 1 ]; then
echo 'error, make fail'
exit 1
fi

go version
if [ $? -ge 1 ]; then
echo 'error, not find go in PATH'
exit 1
fi

echo build liteide tools ...
cd $LITEIDE_ROOT

if [ -z $GOPATH ]; then
export GOPATH=$PWD
else
export GOPATH=$PWD:$GOPATH
fi

go install -ldflags "-s" -v github.com/visualfc/gotools

if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi

go install -ldflags "-s" -v github.com/nsf/gocode

if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi

echo deploy ...

cd $BUILD_ROOT

rm -r liteide
mkdir -p liteide
mkdir -p liteide/bin
mkdir -p liteide/share/liteide
mkdir -p liteide/lib/liteide/plugins

cp -a -v $LITEIDE_ROOT/LICENSE.LGPL liteide
cp -a -v $LITEIDE_ROOT/LGPL_EXCEPTION.TXT liteide
cp -a -v $LITEIDE_ROOT/../README.md liteide
cp -a -v $LITEIDE_ROOT/../CONTRIBUTORS liteide

cp -a -v $LITEIDE_ROOT/liteide/bin/* liteide/bin
cp -a -v $LITEIDE_ROOT/bin/gotools liteide/bin
cp -a -v $LITEIDE_ROOT/bin/gocode liteide/bin
cp -a -v $LITEIDE_ROOT/liteide/lib/liteide/libliteapp.* liteide/lib/liteide
cp -a -v $LITEIDE_ROOT/liteide/lib/liteide/plugins/*.so liteide/lib/liteide/plugins

cp -r -v $LITEIDE_ROOT/deploy/* liteide/share/liteide/
cp -r -v $LITEIDE_ROOT/os_deploy/linux/* liteide/share/liteide/
1 change: 0 additions & 1 deletion build/update_tr.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ lrelease -compress %LITEIDE_ROOT%\liteide_fr.ts -qm %LITEIDE_ROOT%\deploy\transl
lrelease -compress %LITEIDE_ROOT%\liteide_ja.ts -qm %LITEIDE_ROOT%\deploy\translations\liteide_ja.qm
lrelease -compress %LITEIDE_ROOT%\liteide_ru.ts -qm %LITEIDE_ROOT%\deploy\translations\liteide_ru.qm
lrelease -compress %LITEIDE_ROOT%\liteide_uk.ts -qm %LITEIDE_ROOT%\deploy\translations\liteide_uk.qm
lrelease -compress %LITEIDE_ROOT%\liteide_tr.ts -qm %LITEIDE_ROOT%\deploy\translations\liteide_tr.qm

goto end

Expand Down
1 change: 0 additions & 1 deletion build/update_tr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ lrelease -compress %LITEIDE_ROOT%/liteide_de.ts -qm %LITEIDE_ROOT%/deploy/transl
lrelease -compress %LITEIDE_ROOT%/liteide_fr.ts -qm %LITEIDE_ROOT%/deploy/translations/liteide_fr.qm
lrelease -compress %LITEIDE_ROOT%/liteide_ja.ts -qm %LITEIDE_ROOT%/deploy/translations/liteide_ja.qm
lrelease -compress %LITEIDE_ROOT%/liteide_ru.ts -qm %LITEIDE_ROOT%/deploy/translations/liteide_ru.qm
lrelease -compress %LITEIDE_ROOT%/liteide_uk.ts -qm %LITEIDE_ROOT%/deploy/translations/liteide_uk.qm

Binary file modified liteidex/deploy/translations/liteide_ru.qm
Binary file not shown.
Binary file modified liteidex/deploy/translations/liteide_uk.qm
Binary file not shown.
Binary file modified liteidex/deploy/translations/liteide_zh.qm
Binary file not shown.
Loading

0 comments on commit 52dfce9

Please sign in to comment.