Added script to adjust footer.
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 15 Jan 2009 12:30:36 +0000 (13:30 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 15 Jan 2009 12:30:36 +0000 (13:30 +0100)
fixup-headers/footer.sh [new file with mode: 0755]

diff --git a/fixup-headers/footer.sh b/fixup-headers/footer.sh
new file mode 100755 (executable)
index 0000000..9a3296e
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+for f in `find . \( -name '*.[ch]' -or -name '*.cpp' -or -name '*.hpp' \) -print`; do
+       echo $f
+       sed '/ * Local variables:/ {
+a\
+ * c-basic-offset: 4\
+ * c-file-style: "Stroustrup"\
+ * indent-tabs-mode: nil\
+ * End:\
+ * vim: shiftwidth=4 tabstop=8 expandtab\
+ */\
+
+q
+}' < $f >${f}_new
+       mv ${f}_new $f
+done
+