]> git.sesse.net Git - kdenlive/blob - reindent.sh
Make effect groups translatable
[kdenlive] / reindent.sh
1 #! /bin/sh
2
3 SRCDIRS="src plugins renderer thumbnailer"
4
5 if [ $# -gt 0 ]
6 then
7         FILES=$@
8 else
9         FILES=$(find $SRCDIRS -type f -name \*.cpp -o -name \*.h)
10 fi
11
12 astyle --indent=spaces=4 --brackets=linux \
13        --indent-labels --unpad=paren \
14        --pad=oper --convert-tabs \
15        --indent-preprocessor \
16        ${FILES}
17
18 echo -n "Delete .orig files (y/N) ? "
19 read del
20
21 if [ "x${del}" = "xy" ]
22 then
23    echo "removing .orig files"
24    find $SRCDIRS -iname "*.orig" -exec rm {} ";"
25 else
26    echo "Not deleting .orig files"
27 fi