diff --git a/scripts/build-appimage.sh b/linux/build-appimage.sh similarity index 100% rename from scripts/build-appimage.sh rename to linux/build-appimage.sh diff --git a/scripts/coding_style.sh b/scripts/coding_style.sh deleted file mode 100755 index e37114d14..000000000 --- a/scripts/coding_style.sh +++ /dev/null @@ -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 diff --git a/scripts/cppcheck.sh b/scripts/cppcheck.sh deleted file mode 100755 index 4b7228d97..000000000 --- a/scripts/cppcheck.sh +++ /dev/null @@ -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 diff --git a/scripts/fix_sr_ijekavian_translations.sh b/scripts/fix_sr_ijekavian_translations.sh deleted file mode 100755 index 6471bc4a0..000000000 --- a/scripts/fix_sr_ijekavian_translations.sh +++ /dev/null @@ -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" diff --git a/scripts/generate_project_translations.sh b/scripts/generate_project_translations.sh deleted file mode 100755 index ffddec129..000000000 --- a/scripts/generate_project_translations.sh +++ /dev/null @@ -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 " locale/`echo $translation | awk 'BEGIN{FS="/"}{print substr($6,0,length($6)-3)}'`.qm" - 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" - diff --git a/scripts/getrevision.sh b/scripts/getrevision.sh deleted file mode 100755 index eb341c9e6..000000000 --- a/scripts/getrevision.sh +++ /dev/null @@ -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 diff --git a/scripts/plugin_translations.sh b/scripts/plugin_translations.sh deleted file mode 100755 index 31d53a1ab..000000000 --- a/scripts/plugin_translations.sh +++ /dev/null @@ -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 diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh deleted file mode 100755 index 08d5d421d..000000000 --- a/scripts/run_tests.sh +++ /dev/null @@ -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 $? diff --git a/scripts/translations_update.sh b/scripts/translations_update.sh deleted file mode 100755 index d6e7dc382..000000000 --- a/scripts/translations_update.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -ARGUMENTS="" -if [ "$1" == "-no-obsolete" ]; then -ARGUMENTS="-no-obsolete" -fi - -# circular inclusions workaround - we comment that buggy line -sed -i 's/include(3rdparty/##temp/g' ../src/lib/lib.pro - -cd ../src/lib/ -rm ../../translations/empty.ts -lupdate $ARGUMENTS lib.pro -ts ../../translations/empty.ts -cd - - -# uncomment it now -sed -i 's/##temp/include(3rdparty/g' ../src/lib/lib.pro - -# it is needed to double for transifex -awk '{ print $0; \ - if (index($0, "")) \ - print $0; \ - }' ../translations/empty.ts > tmp.ts -mv tmp.ts ../translations/empty.ts - -exit 0