]> git.sesse.net Git - kdenlive/commitdiff
ask for deleting .orig files
authorMarco Gittler <marco@gitma.de>
Mon, 3 Mar 2008 12:44:03 +0000 (12:44 +0000)
committerMarco Gittler <marco@gitma.de>
Mon, 3 Mar 2008 12:44:03 +0000 (12:44 +0000)
svn path=/branches/KDE4/; revision=1989

reindent.sh

index 47140d1d7b4578e08916ee2efa85a13e3cd2116b..53fe1ecb162f4c93ed15af9419ac6611e61ebb86 100755 (executable)
@@ -4,4 +4,15 @@ astyle --indent=spaces=4 --brackets=attach \
        --indent-labels --unpad=paren \
        --pad=oper --convert-tabs \
        --indent-preprocessor \
-       `find -type f -wholename './src/*.cpp'` `find -type f -wholename './src/*.h'`
\ No newline at end of file
+       `find -type f -wholename './src/*.cpp'` `find -type f -wholename './src/*.h'`
+
+echo -e "Delete .orig files (y/N) ?"
+read del
+
+if [ "x${del}" = "xy" ]
+then
+   echo "removing .orig files"
+   find src -iname "*.orig" -exec rm {} ";"
+else
+   echo "Not deleting .orig files"
+fi