From 6ec536e94dbbf86401bb1cbe0b333cd8e3f0a431 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 10 Dec 2012 17:44:55 +0100 Subject: [PATCH] Removing old shutils script and adding new one --- extra/shutils/id.sh | 8 -------- extra/shutils/pyflakes.sh | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) delete mode 100755 extra/shutils/id.sh create mode 100755 extra/shutils/pyflakes.sh diff --git a/extra/shutils/id.sh b/extra/shutils/id.sh deleted file mode 100755 index dfae9c027..000000000 --- a/extra/shutils/id.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/) -# See the file 'doc/COPYING' for copying permission - -# Adds SVN property 'Id' to project files -find ../../. -type f -iname "*.py" -exec sed -i s/\$Id.*$/\$Id\$/g '{}' \; -find ../../. -type f -iname "*.py" -exec svn propset svn:keywords "Id" '{}' \; diff --git a/extra/shutils/pyflakes.sh b/extra/shutils/pyflakes.sh new file mode 100755 index 000000000..e73ede92f --- /dev/null +++ b/extra/shutils/pyflakes.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/) +# See the file 'doc/COPYING' for copying permission + +# Runs pyflakes on all python files +find . -wholename "./thirdparty" -prune -o -type f -iname "*.py" -exec pyflakes '{}' \;