From d73465ad10f3fba4c5b880103c58d7d3b9b546c5 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 15 Jan 2009 13:30:36 +0100 Subject: [PATCH] Added script to adjust footer. --- fixup-headers/footer.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 fixup-headers/footer.sh diff --git a/fixup-headers/footer.sh b/fixup-headers/footer.sh new file mode 100755 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 + -- 1.7.10.4