From 6e71c239d9a9baa42fe3c1a843758ff4c2c7ebcc Mon Sep 17 00:00:00 2001 From: Micha Lenk Date: Wed, 29 Dec 2010 13:54:58 +0000 Subject: [PATCH] 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 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19990 57a11ea4-9604-0410-9ed3-97b8803252fd --- util/gnc-svnversion | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/util/gnc-svnversion b/util/gnc-svnversion index dfaae6b4da..569cf6f9b9 100755 --- a/util/gnc-svnversion +++ b/util/gnc-svnversion @@ -17,6 +17,17 @@ my_die() 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 " [ -d "$1" ] || my_die "$0: $1: not a directory"