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

Derek Atkins warlord at MIT.EDU
Wed Dec 29 09:34:51 EST 2010


Micha,

Can you explain how this diff is useful?  The "Building_from_svn" check
is all about determining whether we have to e.g. build the swig files,
etc.  It's COMPLETELY dependent on having already called "make dist".

If you force it off, then the build will probably fail.  Have you tested
that this actually works?

-derek

Micha Lenk <micha at code.gnucash.org> writes:

> 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"
>
> _______________________________________________
> gnucash-changes mailing list
> gnucash-changes at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-changes
>
>

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list