projects
/
supertux.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fade out and pause music on death and resume on restart of level, fixes #1064
[supertux.git]
/
tools
/
fix_include_guards.sh
1
#!/bin/sh
2
3
for i in "$@"; do
4
echo $i
5
NAME=$(echo $i | sed "s/[\/\.]/_/g;s/^/HEADER_SUPERTUX_/" | tr [a-z] [A-Z])
6
sed -i "s/^#ifndef .*_H_\$/#ifndef $NAME/" $i;
7
sed -i "s/^#define .*_H_\$/#define $NAME/" $i;
8
done
9
10
# EOF #