From 9980d3f16cb47d29ce7b29b8b47c5ffed5ddafcb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 15 Oct 2001 22:08:40 +0000 Subject: - Tidied up the script names a bit ... --- scripts/code-clean.sh | 5 +++++ scripts/code-size.sh | 10 ++++++++++ scripts/cron-lynx | 2 -- scripts/php-clean | 5 ----- scripts/php-count | 10 ---------- 5 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 scripts/code-clean.sh create mode 100644 scripts/code-size.sh delete mode 100644 scripts/cron-lynx delete mode 100644 scripts/php-clean delete mode 100644 scripts/php-count (limited to 'scripts') diff --git a/scripts/code-clean.sh b/scripts/code-clean.sh new file mode 100644 index 000000000..5c14c3721 --- /dev/null +++ b/scripts/code-clean.sh @@ -0,0 +1,5 @@ +#!/bin/sh +find . -name "*~" -type f | xargs rm -f +find . -name "DEADJOE" -type f | xargs rm -f +find . -name "*" -type f | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".tgz" | xargs perl -wi -pe 's/\s+$/\n/' +find . -name "*" -type f | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".tgz" | xargs perl -wi -pe 's/\t/ /g' diff --git a/scripts/code-size.sh b/scripts/code-size.sh new file mode 100644 index 000000000..7b2123408 --- /dev/null +++ b/scripts/code-size.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +echo -n "lines of code in .inc files :" +find . -name "*.inc" | xargs cat | wc -l +echo -n "lines of code in .php files :" +find . -name "*.php" | xargs cat | wc -l +echo -n "lines of code in .theme files :" +find . -name "*.theme" | xargs cat | wc -l +echo -n "lines of code in .module files:" +find . -name "*.module" | xargs cat | wc -l diff --git a/scripts/cron-lynx b/scripts/cron-lynx deleted file mode 100644 index 84e9e8fbb..000000000 --- a/scripts/cron-lynx +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/usr/bin/lynx -source http://yoursite.com/cron.php > /dev/null 2>&1 diff --git a/scripts/php-clean b/scripts/php-clean deleted file mode 100644 index 5c14c3721..000000000 --- a/scripts/php-clean +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -find . -name "*~" -type f | xargs rm -f -find . -name "DEADJOE" -type f | xargs rm -f -find . -name "*" -type f | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".tgz" | xargs perl -wi -pe 's/\s+$/\n/' -find . -name "*" -type f | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".tgz" | xargs perl -wi -pe 's/\t/ /g' diff --git a/scripts/php-count b/scripts/php-count deleted file mode 100644 index 7b2123408..000000000 --- a/scripts/php-count +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -echo -n "lines of code in .inc files :" -find . -name "*.inc" | xargs cat | wc -l -echo -n "lines of code in .php files :" -find . -name "*.php" | xargs cat | wc -l -echo -n "lines of code in .theme files :" -find . -name "*.theme" | xargs cat | wc -l -echo -n "lines of code in .module files:" -find . -name "*.module" | xargs cat | wc -l -- cgit v1.2.3