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
This commit is contained in:
Micha Lenk 2010-12-29 13:54:58 +00:00
parent 2fcc850c98
commit 6e71c239d9

View File

@ -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 <srcdir>"
[ -d "$1" ] || my_die "$0: $1: not a directory"