aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2011-04-21 06:56:06 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2011-04-21 06:56:06 -0400
commitfd225580a93532d8c2b6a8ed048b7624660ce4ab (patch)
treeefdb60e25e8bbcdd012fe13b1b25662095eec37e
parentFixed MAN page search paths. (diff)
downloadeselect-fd225580a93532d8c2b6a8ed048b7624660ce4ab.tar.gz
eselect-fd225580a93532d8c2b6a8ed048b7624660ce4ab.tar.bz2
eselect-fd225580a93532d8c2b6a8ed048b7624660ce4ab.zip
'-printf' is GNU extension of the find utility. Additionally, the regex that was
passed was an Emacs regex, which is also a GNU extension of the find utility.
-rw-r--r--postgresql.eselect8
1 files changed, 4 insertions, 4 deletions
diff --git a/postgresql.eselect b/postgresql.eselect
index 0cc2fdf..d42fda9 100644
--- a/postgresql.eselect
+++ b/postgresql.eselect
@@ -7,7 +7,7 @@ inherit config multilib
DESCRIPTION="Manage active PostgreSQL client applications and libraries"
MAINTAINER="pgsql-bugs@gentoo.org"
SVN_DATE='$Date: $'
-VERSION="1.0.6"
+VERSION="1.0.8"
# Global Data
B_PATH="${EROOT%/}/usr"
@@ -82,8 +82,8 @@ unlinker() {
# Find all available slots in the preferred lib_dir() and return them.
get_slots() {
echo $(find "${B_PATH}/$(lib_dir)" -maxdepth 1 -type d \
- -regex '.*postgresql-[0-9]+\.[0-9]+' -printf '%f\n' | \
- sed -re 's#^.+-##' | sort -n)
+ -regex '.*postgresql-[0-9]+\.[0-9]+' | \
+ sed -re 's#.*([0-9]+\.[0-9]+)$#\1#' | sort -n)
}
### List Action ###
@@ -184,7 +184,7 @@ do_set() {
echo "${targets[$i]}" >> "${E_PATH}"/active.links
done
- # Link modules to /usr/lib{,lib32,lib64}/
+ # Link modules to /usr/lib{,32,64}/
local x
for x in $(list_libdirs) ; do
if [[ -d ${B_PATH}/${x}/postgresql-${SLOT}/${x} ]] ; then