]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Added ngindent.
authorAlexander Barton <alex@barton.de>
Sun, 23 Jul 2006 11:34:32 +0000 (11:34 +0000)
committerAlexander Barton <alex@barton.de>
Sun, 23 Jul 2006 11:34:32 +0000 (11:34 +0000)
contrib/README
contrib/ngindent [new file with mode: 0755]

index 67bac21bb20436c86d9725ae2652ebd60c00c85c..f32005ef9c42e732a6109412689126e775120c5b 100644 (file)
                             -- Contributions --
 
 
+Debian/
+ - Various files for building Debian GNU/Linux packages (".deb's").
+
 MacOSX/
- - Project file for XCode "project builder" of Mac OS X.
+ - Project files for XCode, the "project builder" of Apple Mac OS X.
 
-Debian/
- - Various files for building Debian packages.
+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 $
diff --git a/contrib/ngindent b/contrib/ngindent
new file mode 100755 (executable)
index 0000000..73537a6
--- /dev/null
@@ -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-