/[gentoo-x86]/app-shells/bash/bash-3.2_p51.ebuild
Gentoo

Diff of /app-shells/bash/bash-3.2_p51.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/Attic/bash-3.2_p51.ebuild,v 1.2 2011/02/06 17:21:49 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/Attic/bash-3.2_p51.ebuild,v 1.3 2011/05/16 10:36:26 nyhm Exp $
4 4
5EAPI=1 5EAPI=1
6 6
7inherit eutils flag-o-matic toolchain-funcs multilib 7inherit eutils flag-o-matic toolchain-funcs multilib
8 8
171 171
172 if [[ -L ${ROOT}/bin/sh ]]; then 172 if [[ -L ${ROOT}/bin/sh ]]; then
173 # rewrite the symlink to ensure that its mtime changes. having /bin/sh 173 # rewrite the symlink to ensure that its mtime changes. having /bin/sh
174 # missing even temporarily causes a fatal error with paludis. 174 # missing even temporarily causes a fatal error with paludis.
175 local target=$(readlink "${ROOT}"/bin/sh) 175 local target=$(readlink "${ROOT}"/bin/sh)
176 local tmp=$(emktemp "${ROOT}"/bin)
177 ln -sf "${target}" "${tmp}"
176 ln -sf "${target}" "${ROOT}"/bin/sh 178 mv -f "${tmp}" "${ROOT}"/bin/sh
177 fi 179 fi
178} 180}
179 181
180pkg_postinst() { 182pkg_postinst() {
181 # If /bin/sh does not exist, provide it 183 # If /bin/sh does not exist, provide it

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20