From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SR44X-0005Ny-Pf for garchives@archives.gentoo.org; Sun, 06 May 2012 16:12:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1406E08FC; Sun, 6 May 2012 16:06:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 72206E08ED for ; Sun, 6 May 2012 16:06:15 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 10B261B4094 for ; Sun, 6 May 2012 16:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D2F05E542B for ; Sun, 6 May 2012 16:06:13 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1241715435.cba02b5957769fa8a63da8dff606f3bcd4a5ebd4.sping@gentoo> Subject: [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog ctags.eselect X-VCS-Directories: / X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: cba02b5957769fa8a63da8dff606f3bcd4a5ebd4 X-VCS-Branch: eselect-emacs Date: Sun, 6 May 2012 16:06:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: edb31f50-5b7f-4b7a-9859-4110112d6d9d X-Archives-Hash: cbf810a945861cac7b5520622999e13b commit: cba02b5957769fa8a63da8dff606f3bcd4a5ebd4 Author: Ulrich M=C3=BCller gentoo org> AuthorDate: Thu May 7 16:57:15 2009 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Thu May 7 16:57:15 2009 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/emacs-tools.g= it;a=3Dcommit;h=3Dcba02b59 Ditto for ctags module. svn path=3D/eselect-emacs/; revision=3D1271 --- ChangeLog | 1 + ctags.eselect | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1b98136..0b2cd96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2009-05-07 Ulrich Mueller =20 + * ctags.eselect (find_targets, do_show, do_update): * emacs.eselect (do_show, do_update): "canonicalise" is not necessary since "test -e" resolves symbolic links. =20 diff --git a/ctags.eselect b/ctags.eselect index 0e3787a..9b837dd 100644 --- a/ctags.eselect +++ b/ctags.eselect @@ -39,8 +39,7 @@ find_targets() { # currently active Emacs version (selected by emacs.eselect) # The logic here is the same as in emacs.eselect, don't change it! local emacs - if [[ -L ${ROOT}${bindir}/emacs && \ - -e $(canonicalise "${ROOT}${bindir}/emacs") ]]; then + if [[ -L ${ROOT}${bindir}/emacs && -e ${ROOT}${bindir}/emacs ]]; then emacs=3D$(basename "$(readlink "${ROOT}${bindir}/emacs")") [[ -f ${ROOT}${bindir}/${CTAGS}-${emacs} ]] && echo "${CTAGS}-${emacs}= " elif [[ -f ${ROOT}${bindir}/xemacs ]]; then @@ -121,8 +120,8 @@ do_show() { [[ $# -gt 0 ]] && die -q "Too many parameters" =20 write_list_start "Current target of ${CTAGS} symlink:" - if [[ -L ${ROOT}${bindir}/${CTAGS} && \ - -e $(canonicalise "${ROOT}${bindir}/${CTAGS}") ]]; then + if [[ -L ${ROOT}${bindir}/${CTAGS} && -e ${ROOT}${bindir}/${CTAGS} ]] + then write_kv_list_entry \ "$(basename "$(readlink "${ROOT}${bindir}/${CTAGS}")")" "" elif [[ -e ${ROOT}${bindir}/${CTAGS} ]]; then @@ -200,7 +199,7 @@ do_update() { local current=3D"" if [[ -L ${ROOT}${bindir}/${CTAGS} ]]; then current=3D$(basename "$(readlink "${ROOT}${bindir}/${CTAGS}")") - if [[ ! -e $(canonicalise "${ROOT}${bindir}/${CTAGS}") ]]; then + if [[ ! -e ${ROOT}${bindir}/${CTAGS} ]]; then # clean up dead symlinks remove_symlinks || die -q "Couldn't remove existing symlink" fi