summaryrefslogtreecommitdiff
path: root/db-move
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-12-19 14:40:07 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-12-19 14:40:07 +0100
commit5c7220a4aa370d1f726eb27d99d8f9294646433d (patch)
tree699c4f1643fa94c26eb75c683ca995f890108d8d /db-move
parent2b7bb0c6b7aa4f7a43c82db1cf9a18d27600c62e (diff)
Avoid calls to basename
Diffstat (limited to 'db-move')
-rwxr-xr-xdb-move6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-move b/db-move
index 019faa2..9166a99 100755
--- a/db-move
+++ b/db-move
@@ -4,7 +4,7 @@
. "$(dirname $0)/config"
if [ $# -lt 3 ]; then
- msg "usage: $(basename $0) <repo-from> <repo-to> <pkgname|pkgbase> ..."
+ msg "usage: ${0##*/} <repo-from> <repo-to> <pkgname|pkgbase> ..."
exit 1
fi
@@ -90,12 +90,12 @@ for pkgbase in ${args[@]:2}; do
/usr/bin/svn mv -q -r HEAD "${svnrepo_from}/$file" "${svnrepo_to}/"
done
/usr/bin/svn rm --force -q "${svnrepo_from}"
- /usr/bin/svn commit -q "${WORKDIR}/svn/${pkgbase}" -m "$(basename $0): moved ${pkgbase} from [${repo_from}] to [${repo_to}] (${pkgarch})"
+ /usr/bin/svn commit -q "${WORKDIR}/svn/${pkgbase}" -m "${0##*/}: moved ${pkgbase} from [${repo_from}] to [${repo_to}] (${pkgarch})"
for pkgname in ${pkgnames[@]}; do
for tarch in ${tarches[@]}; do
pkgpath=$(getpkgfile "${ftppath_from}/${tarch}/"${pkgname}-${pkgver}-${pkgarch}${PKGEXT})
- pkgfile=$(basename "${pkgpath}")
+ pkgfile="${pkgpath##*/}"
# copy package to pool if needed
# TODO: can be removed once every package has been moved to the package pool