From 9e4dca9b627276d4558e9ec8a8475c136e7935f9 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 28 Mar 2009 15:48:24 +0100 Subject: scripts --- scripts/Messages.sh | 5 +++++ scripts/codingstyle.sh | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 scripts/Messages.sh create mode 100644 scripts/codingstyle.sh (limited to 'scripts') diff --git a/scripts/Messages.sh b/scripts/Messages.sh new file mode 100755 index 00000000..09ce1214 --- /dev/null +++ b/scripts/Messages.sh @@ -0,0 +1,5 @@ +# FIXME +#! /usr/bin/env bash +$EXTRACTRC `find . -name \*.ui -o -name \*.rc -o -name \*.kcfg` >> rc.cpp +$XGETTEXT `find . -name \*.cpp` -o $podir/rekonq.pot + diff --git a/scripts/codingstyle.sh b/scripts/codingstyle.sh new file mode 100644 index 00000000..ce24a5a1 --- /dev/null +++ b/scripts/codingstyle.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# +# apply kdelibs coding style to all c, cpp and header files in src directory +# requirements: installed astyle +# +# The coding style is defined in http://techbase.kde.org/Policies/Kdelibs_Coding_Style +# +# In rekonq we use some little different rules.. + +{ +cd .. +cd src + +astyle \ +--indent=spaces=4 \ +--brackets=break \ +--indent-labels \ +--pad=oper \ +--unpad=paren \ +--one-line=keep-statements \ +--convert-tabs \ +--indent-preprocessor \ +`find -type f -name '*.cpp'` `find -type f -name '*.h'` +} \ No newline at end of file -- cgit v1.2.1