r19990 - gnucash/trunk/util - Add facility to force BUILDING_FROM_SVN=no from outside the Gnucash build system

Micha Lenk micha at code.gnucash.org
Wed Dec 29 08:54:58 EST 2010


Author: micha
Date: 2010-12-29 08:54:58 -0500 (Wed, 29 Dec 2010)
New Revision: 19990
Trac: http://svn.gnucash.org/trac/changeset/19990

Modified:
   gnucash/trunk/util/gnc-svnversion
Log:
Add facility to force BUILDING_FROM_SVN=no from outside the Gnucash build system

Needed by packagers that maintain the packaging code in svn, svk or git too


Modified: gnucash/trunk/util/gnc-svnversion
===================================================================
--- gnucash/trunk/util/gnc-svnversion	2010-12-29 12:30:13 UTC (rev 19989)
+++ gnucash/trunk/util/gnc-svnversion	2010-12-29 13:54:58 UTC (rev 19990)
@@ -17,6 +17,17 @@
   exit 1
 }
 
+if [ "$BUILDING_FROM_SVN" = "0" -o \
+     "$BUILDING_FROM_SVN" = "no" -o \
+     "$BUILDING_FROM_SVN" = "false" ]; then
+  # Something outside of the Gnucash build system knows that we
+  # are NOT building from svn, svk or git checkout.
+  # We should believe it (needed by packagers that maintain the
+  # packaging code in svn, svk or git too)
+  echo "Environment variable BUILDING_FROM_SVN=$BUILDING_FROM_SVN" >&2
+  exit 1
+fi
+
 # Make sure we have a srcdir
 [ -n "$1" ] || my_die "Usage: $0 <srcdir>"
 [ -d "$1" ] || my_die "$0: $1: not a directory"



More information about the gnucash-changes mailing list