#! /bin/sh
-SRCDIRS="src plugins renderer thumbnailer"
+WRKDIR=$(dirname $0)
+SRCDIRS="$WRKDIR/src $WRKDIR/plugins $WRKDIR/renderer $WRKDIR/thumbnailer"
if [ $# -gt 0 ]
then
FILES=$(find $SRCDIRS -type f -name \*.cpp -o -name \*.h)
fi
-astyle --indent=spaces=4 --brackets=attach \
+astyle --indent=spaces=4 --brackets=linux \
--indent-labels --unpad=paren \
--pad=oper --convert-tabs \
--indent-preprocessor \
if [ "x${del}" = "xy" ]
then
echo "removing .orig files"
- find src -iname "*.orig" -exec rm {} ";"
+ find $SRCDIRS -iname "*.orig" -exec rm {} ";"
else
echo "Not deleting .orig files"
fi