Commit 34be155b authored by David Faure's avatar David Faure
Browse files

c++-*-class-and-file: add support for camelcase filenames

parent 9185dd64
......@@ -8,8 +8,13 @@ fi
oldname=$1
newname=$2
oldfile=`echo $oldname | tr A-Z a-z`
newfile=`echo $newname | tr A-Z a-z`
if [ -f $oldname.cpp ]; then
oldfile=$oldname
newfile=$newname
else
oldfile=`echo $oldname | tr A-Z a-z`
newfile=`echo $newname | tr A-Z a-z`
fi
echo "Copying $oldfile.{cpp,h} to $newfile.{cpp,h}"
......
......@@ -8,8 +8,13 @@ if [ $# != 2 ]; then
exit 1
fi
oldfile=`echo $oldname | tr A-Z a-z`
newfile=`echo $newname | tr A-Z a-z`
if [ -f $oldname.cpp ]; then
oldfile=$oldname
newfile=$newname
else
oldfile=`echo $oldname | tr A-Z a-z`
newfile=`echo $newname | tr A-Z a-z`
fi
findup() {
parg="$1"
......
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