Revision
15232
Author
mikej
Date
2009-10-26 14:05:22 -0500 (Mon, 26 Oct 2009)

Log Message

be more obvious when you can't do an update

Modified Paths

Diff

Modified: freeswitch/trunk/Makefile.am (15231 => 15232)


--- freeswitch/trunk/Makefile.am	2009-10-26 18:20:55 UTC (rev 15231)
+++ freeswitch/trunk/Makefile.am	2009-10-26 19:05:22 UTC (rev 15232)
@@ -299,7 +299,17 @@
 	  fi ; \
 	fi ;
 
-update:
+is-svn:
+	@if [ ! -d .svn ] ; then \
+		echo ; echo ; \
+		echo "**************************************************************************************************" ; \
+		echo "You can not update a release tarball or without a svn working copy, please checkout fresh from svn" ; \
+		echo "**************************************************************************************************" ; \
+		echo ; echo ; \
+		exit 1; \
+	fi 
+
+update: is-svn
 	@if test -d .svn ; then \
 	  test ! -f .version || rm -f .version ; \
 	  echo Updating... ; \
@@ -357,17 +367,17 @@
 
 everything: install
 
-up: clean
+up: is-svn clean
 	svn update
 	$(MAKE) -j core
 	$(MAKE) -j modules
 	$(MAKE) install
 
-sync:
+sync: is-svn
 	svn update
 	$(MAKE) install
 
-speedy-sync:
+speedy-sync: is-svn
 	svn update
 	$(MAKE) -j install
 
@@ -431,14 +441,14 @@
 	cd libs/sofia-sip && $(MAKE) clean
 	cd libs/sofia-sip && ./configure --prefix=$(PREFIX) --with-pic --with-glib=no --disable-shared
 
-current: update-clean
+current: is-svn update-clean
 	svn update
 	$(MAKE) all
 	$(MAKE) install
 
 installall: current
 
-speedy-current: update-clean
+speedy-current: is-svn update-clean
 	svn update
 	$(MAKE) speedy-sure
 	$(MAKE) install