From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0294D1381FA for ; Tue, 27 May 2014 20:56:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1393E0807; Tue, 27 May 2014 20:56:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 117D0E0807 for ; Tue, 27 May 2014 20:56:41 +0000 (UTC) Received: from spoonbill.gentoo.org (unknown [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 01DFF33F8DF for ; Tue, 27 May 2014 20:56:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 5433B181A9 for ; Tue, 27 May 2014 20:56:39 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1400492944.80b45fb3220bedab9c42d4d9fe27cdce876a6075.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: / X-VCS-Repository: proj/gentoo-keys X-VCS-Files: testpath X-VCS-Directories: / X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 80b45fb3220bedab9c42d4d9fe27cdce876a6075 X-VCS-Branch: master Date: Tue, 27 May 2014 20:56:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 309fe32f-4198-4db7-bf12-87d726a80b92 X-Archives-Hash: 714c7f0907af4c4f0725ef40a733933e commit: 80b45fb3220bedab9c42d4d9fe27cdce876a6075 Author: Pavlos Ratis gentoo org> AuthorDate: Wed May 14 18:46:05 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Mon May 19 09:49:04 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=80b45fb3 add zsh support in testpath --- testpath | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/testpath b/testpath index b1bc173..3bf8bde 100644 --- a/testpath +++ b/testpath @@ -11,7 +11,10 @@ # $ source ./testpath # $ esearch some-package - -export PATH="$(dirname $BASH_SOURCE[0])/../pyGPG/bin:$(dirname $BASH_SOURCE[0])/bin:${PATH}" - -export PYTHONPATH="$(dirname $BASH_SOURCE[0])/../pyGPG/:$(dirname $BASH_SOURCE[0])/../ssl-fetch/:$(dirname $BASH_SOURCE[0])/:${PYTHONPATH}" +if [[ "$SHELL" =~ "zsh" ]]; then + export PATH="$(dirname $0)/../pyGPG/bin:$(dirname $0)/bin:${PATH}" + export PYTHONPATH="$(dirname $0)/../pyGPG/:$(dirname $0)/../ssl-fetch/:$(dirname $0)/:${PYTHONPATH}" +else + export PATH="$(dirname $BASH_SOURCE[0])/../pyGPG/bin:$(dirname $BASH_SOURCE[0])/bin:${PATH}" + export PYTHONPATH="$(dirname $BASH_SOURCE[0])/../pyGPG/:$(dirname $BASH_SOURCE[0])/../ssl-fetch/:$(dirname $BASH_SOURCE[0])/:${PYTHONPATH}" +fi