Commit Diff
Diff:
3833f8aae3717006d99de272e96351cacd5c1bea
155056f38632dbe0fed086ab750fc08dfe91a102
Commit:
155056f38632dbe0fed086ab750fc08dfe91a102
Tree:
29ad858e9213ab4d514f16c60a2327f9458cfb9e
Author:
Alexander Barton <alex@barton.de>
Committer:
Alexander Barton <alex@barton.de>
Date:
Sun Jul 23 11:34:32 2006 UTC
Message:
Added ngindent.
blob - 67bac21bb20436c86d9725ae2652ebd60c00c85c
blob + f32005ef9c42e732a6109412689126e775120c5b
--- contrib/README
+++ contrib/README
@@ -10,12 +10,15 @@
-- Contributions --
-MacOSX/
- - Project file for XCode "project builder" of Mac OS X.
-
Debian/
- - Various files for building Debian packages.
+ - Various files for building Debian GNU/Linux packages (".deb's").
+MacOSX/
+ - Project files for XCode, the "project builder" of Apple Mac OS X.
+
+ngindent
+ - Script to indent the code of ngIRCd in the "standard way".
+
ngircd.sh
- Start script for FreeBSD.
@@ -27,4 +30,4 @@ systrace.policy
--
-$Id: README,v 1.2 2005/08/12 21:32:45 alex Exp $
+$Id: README,v 1.3 2006/07/23 11:34:32 alex Exp $
blob - /dev/null
blob + 73537a6d6d07664ecac76e487aa8aaf6f03e5b7a (mode 755)
--- /dev/null
+++ contrib/ngindent
@@ -0,0 +1,16 @@
+#/bin/sh
+
+INDENTARGS="-kr -i8 -ts8 -l80 -c3 -cd41 -ss -ncs -psl"
+
+# check if indent(1) is available
+type indent >/dev/null 2>&1 && INDENT="indent"
+type gnuindent >/dev/null 2>&1 && INDENT="gnuindent"
+
+if [ -z "$INDENT" ]; then
+ echo "Error: GNU \"indent\" not found!"
+ exit 1
+fi
+
+$INDENT -v $INDENTARGS $*
+
+# -eof-
IRCNow