Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit cb65bfeb authored by David Faure's avatar David Faure

add support for svn to c++-*-class-and-file

parent 6eb25e11
......@@ -16,8 +16,14 @@ echo "Copying $oldfile.{cpp,h} to $newfile.{cpp,h}"
if [ ! -f $newfile.h ]; then
cp $oldfile.h $newfile.h
cp $oldfile.cpp $newfile.cpp
git add $newfile.h
git add $newfile.cpp
SVN_INFO=$(svn info 2>/dev/null)
if test -n "$SVN_INFO"; then
svn add $newfile.h
svn add $newfile.cpp
else
git add $newfile.h
git add $newfile.cpp
fi
fi
# Update build system
......
......@@ -12,8 +12,14 @@ oldfile=`echo $oldname | tr A-Z a-z`
newfile=`echo $newname | tr A-Z a-z`
if [ ! -f $newfile.h ]; then
git mv $oldfile.h $newfile.h
git mv $oldfile.cpp $newfile.cpp
SVN_INFO=$(svn info 2>/dev/null)
if test -n "$SVN_INFO"; then
svn mv $oldfile.h $newfile.h
svn mv $oldfile.cpp $newfile.cpp
else
git mv $oldfile.h $newfile.h
git mv $oldfile.cpp $newfile.cpp
fi
fi
# Update buildsystem
......
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