parent
37bb617264
commit
31fd06cde1
9 changed files with 0 additions and 198 deletions
@ -1,35 +0,0 @@ |
||||
#!/bin/bash |
||||
# |
||||
# Requirements: |
||||
# astyle > =2.02 (patched with foreach support) |
||||
# normalize (Qt tool to normalize all signal/slots format) |
||||
# |
||||
|
||||
OPTIONS="--indent=spaces=4 --style=linux |
||||
--pad-oper --unpad-paren --pad-header --convert-tabs |
||||
--indent-preprocessor --break-closing-brackets |
||||
--align-pointer=type --align-reference=name |
||||
--suffix=none --formatted" |
||||
|
||||
function format_sources { |
||||
astyle $OPTIONS \ |
||||
`find -type f \( -name '*.cpp' -not -name 'moc_*.cpp' \)` |
||||
} |
||||
|
||||
function format_headers { |
||||
astyle $OPTIONS --keep-one-line-statements --keep-one-line-blocks \ |
||||
`find -type f -name '*.h'` |
||||
} |
||||
|
||||
cd ../src |
||||
|
||||
echo "Running astyle for *.cpp ..." |
||||
format_sources |
||||
|
||||
echo "Running astyle for *.h ..." |
||||
format_headers |
||||
|
||||
echo "Running normalize ..." |
||||
normalize --modify . |
||||
|
||||
exit 0 |
||||
@ -1,27 +0,0 @@ |
||||
#!/bin/bash |
||||
# |
||||
# cppcheck |
||||
# |
||||
|
||||
function check_code { |
||||
cppcheck \ |
||||
-j 4 \ |
||||
--enable=style,performance,portability,missingInclude \ |
||||
--inline-suppr \ |
||||
--force \ |
||||
--verbose \ |
||||
. > /dev/null |
||||
} |
||||
|
||||
echo "cppcheck..." |
||||
|
||||
cd ../src/plugins |
||||
check_code |
||||
|
||||
cd ../lib/ |
||||
check_code |
||||
|
||||
cd ../main |
||||
check_code |
||||
|
||||
exit 0 |
||||
@ -1,18 +0,0 @@ |
||||
#!/bin/bash |
||||
|
||||
cd .. |
||||
|
||||
mv src/plugins/AccessKeysNavigation/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/AutoScroll/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/FlashCookieManager/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/GnomeKeyringPasswords/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/GreaseMonkey/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/KWalletPasswords/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/MouseGestures/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/PIM/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/StatusBarIcons/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/TabManager/translations/sr@{I,i}jekavian.ts |
||||
mv src/plugins/TestPlugin/translations/sr@{I,i}jekavian.ts |
||||
mv translations/sr@{I,i}jekavian.ts |
||||
|
||||
echo "Done" |
||||
@ -1,41 +0,0 @@ |
||||
#!/bin/bash |
||||
# |
||||
# Generates list of all translations for qmake .pro and .qrc files |
||||
|
||||
# Plugins translations |
||||
PLUGINS="`ls -d ../src/plugins/*/translations`" |
||||
|
||||
for dir in $PLUGINS |
||||
do |
||||
echo -e "$dir\n" |
||||
echo "TRANSLATIONS += \\" |
||||
|
||||
for translation in $dir/*.ts |
||||
do |
||||
[[ "$translation" == *empty.ts ]] && continue |
||||
echo " `echo $translation | awk 'BEGIN{FS="/"}{printf "%s/%s",$5,$6}'` \\" |
||||
done |
||||
|
||||
echo -e "\n" |
||||
|
||||
for translation in $dir/*.ts |
||||
do |
||||
[[ "$translation" == *empty.ts ]] && continue |
||||
echo " <file>locale/`echo $translation | awk 'BEGIN{FS="/"}{print substr($6,0,length($6)-3)}'`.qm</file>" |
||||
done |
||||
|
||||
echo -e "\n\n" |
||||
done |
||||
|
||||
# App translations |
||||
echo -e "../translations\n" |
||||
echo "TRANSLATIONS += \\" |
||||
|
||||
for translation in ../translations/*.ts |
||||
do |
||||
[[ "$translation" == *empty.ts ]] && continue |
||||
echo " `echo $translation | awk 'BEGIN{FS="/"}{printf "$$PWD/%s",$3}'` \\" |
||||
done |
||||
|
||||
echo -e "\n\n" |
||||
|
||||
@ -1,21 +0,0 @@ |
||||
#!/bin/bash |
||||
|
||||
REV="" |
||||
|
||||
if [ -e "/usr/bin/git" ] && ([ -e ".git" ] || [ -e "../.git" ]); then |
||||
REV=`git rev-parse HEAD` |
||||
elif [ -e "git_revision" ]; then |
||||
REV=`cat git_revision` |
||||
fi |
||||
|
||||
case $1 in |
||||
long) |
||||
echo $REV |
||||
;; |
||||
|
||||
short|*) |
||||
echo $REV | cut -c 1-10 |
||||
;; |
||||
esac |
||||
|
||||
exit 0 |
||||
@ -1,16 +0,0 @@ |
||||
#!/bin/bash |
||||
|
||||
cd ../src/plugins |
||||
|
||||
for pluginPro in */*.pro |
||||
do |
||||
# circular inclusions workaround - we comment that buggy line |
||||
sed -i 's/include(../##temp/g' $pluginPro |
||||
|
||||
lupdate $pluginPro -no-obsolete -ts $pluginPro/../translations/empty.ts |
||||
|
||||
# uncomment it now |
||||
sed -i 's/##temp/include(../g' $pluginPro |
||||
done |
||||
|
||||
exit 0 |
||||
@ -1,14 +0,0 @@ |
||||
#!/bin/bash |
||||
# run_tests.sh |
||||
|
||||
QMAKE="qmake" |
||||
|
||||
if [ -n "$1" ]; then |
||||
QMAKE=$1 |
||||
fi |
||||
|
||||
cd ../tests/autotests |
||||
($QMAKE && make) || exit 1 |
||||
|
||||
./autotests |
||||
exit $? |
||||
Loading…
Reference in new issue