Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2014 08:53:01 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Boris Samorodov <bsam@passap.ru>
Cc:        freebsd-arm@FreeBSD.org
Subject:   Re: [crochet] Introduce SVN_CMD at lib/subversion.sh
Message-ID:  <A538E7D1-6A70-4B45-AD34-F314D6E75CE3@bsdimp.com>
In-Reply-To: <53AD4BBF.9060202@passap.ru>
References:  <53AD4BBF.9060202@passap.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_C9CC2792-3C35-4A03-A5AA-6BFB9B26102D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


On Jun 27, 2014, at 4:47 AM, Boris Samorodov <bsam@passap.ru> wrote:

> Hi Tim, All!
>=20
> Sometimes I use systems which have only svnlite version.
> I propose a patch to let crochet work at those systems as well:

Where is SVN_CMD set?

Most other things in the system would just call this SVN. Is there a =
reason we need the _CMD?

Warner

> -----
> --- lib/subversion.sh.orig  2014-03-30 13:28:41.000000000 +0400
> +++ lib/subversion.sh       2014-06-27 14:37:01.668105743 +0400
> @@ -1,15 +1,16 @@
> +: ${SVN_CMD:=3D`which svn 2>/dev/null || which svnlite 2>/dev/null`}
>=20
> svn_update_sourcetree ( ) {
>     echo "Updating source tree ${FREEBSD_SRC}"
>     cd ${FREEBSD_SRC}
> -    svn update > ${WORKDIR}/_.svnupdate.log
> +    ${SVN_CMD} update > ${WORKDIR}/_.svnupdate.log
>     cd ${TOPDIR}
> }
>=20
> svn_get_revision ( ) {
>     _PWD=3D`pwd`
>     cd ${FREEBSD_SRC}
> -    SOURCE_VERSION=3D`svn info |grep Revision: |cut -c11-`
> +    SOURCE_VERSION=3D`${SVN_CMD} info |grep Revision: |cut -c11-`
>     cd $_PWD
>     echo "Source version is: ${SOURCE_VERSION:-unknown}";
> }
> -----
>=20
> --=20
> WBR, Boris Samorodov (bsam)
> FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"


--Apple-Mail=_C9CC2792-3C35-4A03-A5AA-6BFB9B26102D
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJTrYVOAAoJEGwc0Sh9sBEAnBQP/3yv8s98aREGtwiwosDIGhZL
Bv6ANyZXRdYW7l4e5sBQeATVO9ZWYjTw+rbqI2WblZG3uiWkoFFPL3NpQlVlqW6L
HtW2y0Uso2M5UdCmj9RAU1iANFTYzEXtlUT+pR/TT9Lf61NWMpQbNNOVUGqEUk64
SOx/R79wVEcyoVzCw+Y6M9bUCzkV5ZwpHVRDqeDt13CEDPZaWTPK23OaWjZho/Wb
ghRPGRwWa6sWYdiCznFJ6ZqmgR9TOi+6k3eNQFve+TuLstBJkPtahMoQm6LPz/xV
i6WnwqkLzDUQ3BqQ9dEt8FXPE/Si5iUSZTY7OPwnK4/fIoSpiGaAT7oHpp4V1+ps
UPub/UGHjQ8quZ1uIzi0MuwKCoHqNxwE9aJ9F6GqpXAtbTwHjfBg9PEVX9LO0xGj
Ttw6g6LZOWpPL3vjVmezIZBvxNDZmXMDh5xE8HH+Olf9oFHF768mQFzpob7jKucs
OYoO6+3yLg7+61jtXBvG0JYKmuzZ7QoYv3gyhSq1oGiq8qbhrKLAWdumXYvMxq5j
SL0gPEMkSzHVDKXsSmxsccqTEfTPz7O2g6Bq87L45Q7dft1X/npAtwH18icJtPbo
AdywspHfYQMpnliciSWnoI/udL/rXip+pFNgjAKcyePS1HrZczZ6d0hBNh/Z4Rk3
ejZ0DIwO9J2cR4pPEhyP
=Zcf5
-----END PGP SIGNATURE-----

--Apple-Mail=_C9CC2792-3C35-4A03-A5AA-6BFB9B26102D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A538E7D1-6A70-4B45-AD34-F314D6E75CE3>