-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for that. Patch applied as-is.



Cheers,

Simon.

On 26/04/15 00:18, Johnny S. Lee wrote:
> bld/get-version would return UNKNOWN if the repository was a git 
> submodule, because in this case TOP/.git would be a text file
> instead of a directory. A change like the following (or maybe
> simply replace -d with -e) should make it works.
> 
> diff --git a/bld/get-version b/bld/get-version index
> 7ab75db..8b4e652 100755 --- a/bld/get-version +++
> b/bld/get-version @@ -11,7 +11,8 @@ # If there is more than one
> v[0-9].* tag, sort them and use the # first. This favours, eg v2.63
> over 2.63rc6.
> 
> -if which git >/dev/null 2>&1 && [ -d $1/.git ]; then +if which git
> >/dev/null 2>&1 && \ +          ([ -d $1/.git ] || grep '^gitdir:'
> $1/.git >/dev/null 2>&1); then cd $1; git describe | sed 's/^v//' 
> elif grep '\$Format:%d\$' $1/VERSION >/dev/null 2>&1; then #
> unsubstituted VERSION, but no git available.
> 
> 
> _______________________________________________ Dnsmasq-discuss
> mailing list Dnsmasq-discuss@lists.thekelleys.org.uk 
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlU9V8AACgkQKPyGmiibgrc7JACgp8DNXlzPAqsXi9Ik6su95/n5
KbcAniGNXrXxNlzL3+SCZtCLQTsrfa8a
=vsbR
-----END PGP SIGNATURE-----

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to