summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2016-04-05 21:38:05 +0000
committerPatrice Clement <monsieurp@gentoo.org>2016-04-05 21:39:26 +0000
commit8eab21d118fa6764749848443ce749d3ff916ae2 (patch)
tree4bd303a9f1478cb980c7f2868100bc6576d9ded2 /app-vim/vimclojure
parentapp-vim/vimclojure: Clean up old. (diff)
downloadgentoo-8eab21d118fa6764749848443ce749d3ff916ae2.tar.gz
gentoo-8eab21d118fa6764749848443ce749d3ff916ae2.tar.bz2
gentoo-8eab21d118fa6764749848443ce749d3ff916ae2.zip
app-vim/vimclojure: Swap basename/dirname for bash internals.
Package-Manager: portage-2.2.26
Diffstat (limited to 'app-vim/vimclojure')
-rw-r--r--app-vim/vimclojure/vimclojure-2.3.6-r2.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/app-vim/vimclojure/vimclojure-2.3.6-r2.ebuild b/app-vim/vimclojure/vimclojure-2.3.6-r2.ebuild
index fa807de7acbb..9db315226409 100644
--- a/app-vim/vimclojure/vimclojure-2.3.6-r2.ebuild
+++ b/app-vim/vimclojure/vimclojure-2.3.6-r2.ebuild
@@ -32,8 +32,8 @@ src_prepare() {
# Let's simply rename them.
for file in "${DUPLICATE_FILES[@]}"; do
[[ -f "${file}" ]] || die "Couldn't find: ${file}"
- bname=$(basename "${file}")
- path=$(dirname "${file}")
+ bname="${file##*/}"
+ path="${file%/*}"
noext="${bname%%.*}"
newname="${path}/${PN}_${noext}.vim"
mv "${file}" "${newname}" || die