summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:44 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:44 +0200
commitb3a99e6e15af3be25394e66d1138bb2682f565c3 (patch)
tree0206b0018cd075cc8b0d8d4f34a1d27c38598f36 /scripts
parent5b7605790328c6c0f473296df444d0f4a79ac779 (diff)
tagging ychat-0.5.5ychat-0.5.5
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/astyle.sh5
-rwxr-xr-xscripts/stats.pl4
-rwxr-xr-xscripts/version.sh9
3 files changed, 7 insertions, 11 deletions
diff --git a/scripts/astyle.sh b/scripts/astyle.sh
index 4376887..757364e 100755
--- a/scripts/astyle.sh
+++ b/scripts/astyle.sh
@@ -1,5 +1,6 @@
#!/bin/sh
-# The yChat Project (2004)
+
+# The yChat Project (2004, 2005)
#
# This uses "astyle" to format C++ code into a specific code style!
@@ -8,7 +9,7 @@ do
for i in `find . -name "*.$f"`
do
echo $i
- astyle --style=gnu $i
+ astyle --style=ansi -s2 $i
rm -f $i.orig
done
done
diff --git a/scripts/stats.pl b/scripts/stats.pl
index e5cc2b3..96fbdf1 100755
--- a/scripts/stats.pl
+++ b/scripts/stats.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# The yChat Project (2003 - 2004)
+# The yhttpd Project (2003 - 2004)
#
# This script generates source code and project statistics
@@ -76,7 +76,7 @@ sub filestats
$stats{"Number of script files"}++;
$stats{"Lines of scripts"} += countlines($shift);
}
- elsif ( $shift =~ /(\.txt|README|INSTALL|COPYING|NEWS|SNAPSHOT|ChangeLog)$/ )
+ elsif ( $shift =~ /(\.txt|[A-Z]+)$/ )
{
$stats{"Number of text files"}++;
$stats{"Lines of text"} += countlines($shift);
diff --git a/scripts/version.sh b/scripts/version.sh
index 46b9fc5..be1b351 100755
--- a/scripts/version.sh
+++ b/scripts/version.sh
@@ -1,11 +1,6 @@
#!/bin/sh
# The yChat Project (2005)
#
-# This script shows yChat VERSION-BRANCH Build BUILDNUMBER
-
-version=`grep VERSION src/msgs.h | head -n 1 | cut -d'"' -f2`
-branch=`grep BRANCH src/msgs.h | head -n 1 | cut -d'"' -f2`
-build=`grep BUILD src/msgs.h | tail -n 1 | cut -d' ' -f3`
-echo "yChat $version-$branch Build $build"
-
+# This script shows yChat VERSION-BRANCH
+sed -n 's/.*VERSION.*: \(.*\)".*/\1/p' src/msgs.h