projects
/
git-tools-moved-to-github.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Obsolete README
[git-tools-moved-to-github.git]
/
fixup-headers
/
footer.sh
1
#!/bin/sh
2
for f in `find . \( -name '*.[ch]' -or -name '*.cpp' -or -name '*.hpp' \) -print`; do
3
echo $f
4
sed '/ * Local variables:/ {
5
a\
6
* c-basic-offset: 4\
7
* c-file-style: "Stroustrup"\
8
* indent-tabs-mode: nil\
9
* End:\
10
* vim: shiftwidth=4 tabstop=8 expandtab\
11
*/\
12
13
q
14
}' < $f >${f}_new
15
mv ${f}_new $f
16
done
17