Commit 750b2c90 authored by David Faure's avatar David Faure
Browse files

Some people use lowercase include guards, add support for that

parent 34fb80fb
......@@ -87,10 +87,13 @@ fi
oldinclguard=`echo $oldname | tr a-z A-Z`
newinclguard=`echo $newname | tr a-z A-Z`
oldinclguard_lower=`echo $oldname | tr A-Z a-z`
newinclguard_lower=`echo $newname | tr A-Z a-z`
# Update include guard
if [ -f ${newfile}.h ]; then
perl -pi -e "s/$oldinclguard/$newinclguard/g" $newfile.h
perl -pi -e "s/$oldinclguard_lower/$newinclguard_lower/g" $newfile.h
fi
if [ -f ${newfile}_p.h ]; then
perl -pi -e "s/$oldinclguard/$newinclguard/g" ${newfile}_p.h
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment