projects
/
git-tools-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a9be8d
)
Added script to adjust footer.
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 15 Jan 2009 12:30:36 +0000
(13:30 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 15 Jan 2009 12:30:36 +0000
(13:30 +0100)
fixup-headers/footer.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/fixup-headers/footer.sh
b/fixup-headers/footer.sh
new file mode 100755
(executable)
index 0000000..
9a3296e
--- /dev/null
+++ b/
fixup-headers/footer.sh
@@ -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
+