mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
2fcc850c98
commit
6e71c239d9
@ -17,6 +17,17 @@ my_die()
|
|||||||
exit 1
|
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
|
# Make sure we have a srcdir
|
||||||
[ -n "$1" ] || my_die "Usage: $0 <srcdir>"
|
[ -n "$1" ] || my_die "Usage: $0 <srcdir>"
|
||||||
[ -d "$1" ] || my_die "$0: $1: not a directory"
|
[ -d "$1" ] || my_die "$0: $1: not a directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user