diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2007-02-06 06:02:41 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2007-02-06 06:02:41 +0000 |
commit | 4f6fe266017e403512c5e00796ac733edb25961c (patch) | |
tree | 59fca7855410acbddfcc29b4e65d5c9018464a6c /app-editors | |
parent | version bump (diff) | |
download | gentoo-2-4f6fe266017e403512c5e00796ac733edb25961c.tar.gz gentoo-2-4f6fe266017e403512c5e00796ac733edb25961c.tar.bz2 gentoo-2-4f6fe266017e403512c5e00796ac733edb25961c.zip |
made the definition of suffix variable more elegant (thanks to Ulrich Müller <ulm@kph.uni-mainz.de>
(Portage version: 2.1.1-r2)
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/emacs-cvs/ChangeLog | 7 | ||||
-rw-r--r-- | app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild | 7 | ||||
-rw-r--r-- | app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild | 7 |
3 files changed, 10 insertions, 11 deletions
diff --git a/app-editors/emacs-cvs/ChangeLog b/app-editors/emacs-cvs/ChangeLog index 0901704b81e2..a8a51976b10b 100644 --- a/app-editors/emacs-cvs/ChangeLog +++ b/app-editors/emacs-cvs/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-editors/emacs-cvs # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.79 2007/02/04 14:57:58 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.80 2007/02/06 06:02:41 opfer Exp $ + + 06 Feb 2007; Christian Faulhammer <opfer@gentoo.org> + emacs-cvs-22.0.93-r2.ebuild, emacs-cvs-22.0.9999-r2.ebuild: + made the definition of suffix variable more elegant (thanks to Ulrich + Müller <ulm@kph.uni-mainz.de> 04 Feb 2007; Christian Faulhammer <opfer@gentoo.org> -emacs-cvs-22.0.93-r1.ebuild, emacs-cvs-22.0.93-r2.ebuild, diff --git a/app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild b/app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild index 332fadd1b0da..cb12c595914c 100644 --- a/app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild +++ b/app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild,v 1.5 2007/02/04 14:57:58 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild,v 1.6 2007/02/06 06:02:41 opfer Exp $ WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" @@ -168,10 +168,7 @@ EOF update-alternatives() { # extract the suffix of the manpages to determine the correct compression program - local suffix=`ls /usr/share/man/man1/emacs.emacs-* |sed s/".*\."//g|tail -n 1` - if [ suffix = 1 ]; then - suffix="" - fi + local suffix=$(echo /usr/share/man/man1/emacs.emacs-*.1*|sed 's/.*\.1//') # this creates symlinks for binaries and man pages, so the correct ones in a slotted # environment can be accessed diff --git a/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild b/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild index 3a8bbe822d1f..996e1c7a12a4 100644 --- a/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild +++ b/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild,v 1.5 2007/02/04 14:57:58 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild,v 1.6 2007/02/06 06:02:41 opfer Exp $ ECVS_AUTH="pserver" ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs" @@ -173,10 +173,7 @@ EOF update-alternatives() { # extract the suffix of the manpages to determine the correct compression program - local suffix=`ls /usr/share/man/man1/emacs.emacs-* |sed s/".*\."//g|tail -n 1` - if [ suffix = 1 ]; then - suffix="" - fi + local suffix=$(echo /usr/share/man/man1/emacs.emacs-*.1*|sed 's/.*\.1//') # this creates symlinks for binaries and man pages, so the correct ones in a slotted # environment can be accessed |