From: Adam Dickmeiss Date: Thu, 15 Jan 2009 12:30:36 +0000 (+0100) Subject: Added script to adjust footer. X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=d73465ad10f3fba4c5b880103c58d7d3b9b546c5;p=git-tools-moved-to-github.git Added script to adjust footer. --- 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 +