Make.proto
changeset 913 8a984042de1b
parent 780 43b8b7149f47
child 946 14102eace58d
--- a/Make.proto	Sat Oct 01 13:31:51 2011 +0200
+++ b/Make.proto	Sat Oct 01 13:32:07 2011 +0200
@@ -1,7 +1,7 @@
 # $Header$
 #
 # DO NOT EDIT
-# automagically generated from the projectDefinition: stx_libsvn.
+# automagically generated from the projectDefinition: stx_libsvn at 2011-10-01 12:31:29.572.
 #
 # Warning: once you modify this file, do not rerun
 # stmkmp or projectDefinition-build again - otherwise, your changes are lost.
@@ -68,14 +68,18 @@
 
 
 update-svn-revision:
-	if [ ! -r .svnversion -o "$(shell svnversion -n)" != "$(shell cat .svnversion)" ]; then \
-		svnversion -n > .svnversion; \
-		sed -i -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"'$(shell svnversion -n)'\"\$$\"/g" \
-			stx_libsvn.st; \
+	if [ -d .svn ]; then \
+		if [ ! -r .svnversion -o "$(shell svnversion -n)" != "$(shell cat .svnversion)" ]; then \
+			svnversion -n > .svnversion; \
+			sed -i -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"'$(shell svnversion -n)'\"\$$\"/g" \
+				stx_libsvn.st; \
+		fi \
 	fi
 .PHONY: update-svn-revision
 
 
+
+
 # add more install actions here
 install::