From owner-freebsd-arm@FreeBSD.ORG Fri Jun 27 14:53:09 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9752563 for ; Fri, 27 Jun 2014 14:53:09 +0000 (UTC) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98A4C2845 for ; Fri, 27 Jun 2014 14:53:09 +0000 (UTC) Received: by mail-pd0-f180.google.com with SMTP id fp1so4503651pdb.39 for ; Fri, 27 Jun 2014 07:53:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=SBe28TvEqZJ9u0MJisTF0ZInQNCfmAHEzafgvRRKQEk=; b=bEiRLTccjc2Pwbqu+eWJCyln2I/GVPN9POR08BltLNBPg/Z8d0WFNFlNhOVewDi2kQ Qkz3nHQEoJEYjiJX/NsHVxCs8zYQnjl9S8ZUv5Y5/9tUXzZuYCBJDnPlAMlAooxvGwp1 XhXQSKvbcWWscG7ggEUcWNHQ4f+1R8EPtbZ9WpjV2XGpaN9lTZqUzk698oS2DhyI7Ypd zq8BJUY9BunWURaAy/S36wCuV4dIldpvBjCq12zgtIYr9OQy6GK9cnzxvOifStvmqnq1 BWrkNdnZgCNfKk/FWqQekm1fqL/SKhvb39dI0kPKoGFI2SFbUHsgHp3/NGqvijCnO6O8 jHRA== X-Gm-Message-State: ALoCoQkXueLy3Z7qHSZ/GSE9SyrtwkTYuf4H7WdLXxyY2GRXXpwsn6r3hPYk+B7aV1YDsEm+LLDz X-Received: by 10.66.132.70 with SMTP id os6mr9840501pab.110.1403880783644; Fri, 27 Jun 2014 07:53:03 -0700 (PDT) Received: from lgmac-sckelly.corp.netflix.com (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id xz7sm52652217pac.3.2014.06.27.07.53.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Jun 2014 07:53:03 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_C9CC2792-3C35-4A03-A5AA-6BFB9B26102D"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: [crochet] Introduce SVN_CMD at lib/subversion.sh From: Warner Losh In-Reply-To: <53AD4BBF.9060202@passap.ru> Date: Fri, 27 Jun 2014 08:53:01 -0600 Message-Id: References: <53AD4BBF.9060202@passap.ru> To: Boris Samorodov X-Mailer: Apple Mail (2.1878.2) Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2014 14:53:10 -0000 --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 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--