git-svn-id: https://svn.itm.uni-luebeck.de/wisebed/wiselib/trunk/pc_apps/roomba_tests@3676
f8795833-4959-0410-8ae9-
8bcb0cfab428
battery_test: battery_test.cc
$(CXX) $(CXXFLAGS) $< -o $@
battery_test: battery_test.cc
$(CXX) $(CXXFLAGS) $< -o $@
+if [ -d .svn ]; then
+ revision=$(svn info|grep Revision|sed 's/Revision: //')
+ stat=$(svn status|grep '^M')
+elif [ -d .git/svn ]; then
+ revision=$(git svn info|grep Revision|sed 's/Revision: //')
+ stat=$(git status|grep 'modified: ')
+else
+ echo No SVN working copy!
+ exit 1;
+fi;
-revision=$(svn info|grep Revision|sed 's/Revision: //')
-
-if [ -n "$(svn status|grep '^M')" ]; then
status=" with local changes"
else
status=""
status=" with local changes"
else
status=""