system/rename: Rename executable to pyrename.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dimitris Zlatanidis 2015-02-04 02:17:53 +07:00 committed by Willy Sudiarto Raharjo
parent 24f8266ea3
commit f2a368987a
2 changed files with 7 additions and 1 deletions

View file

@ -1,2 +1,5 @@
Renames files using regular expression matching. This enables elegant handling
of multiple renames using a single command.
Note: This program runs as a 'pyrename' instead of 'rename' to avoid conflict
with the rename from the util-linux.

View file

@ -24,7 +24,7 @@
PRGNAM=rename
VERSION=${VERSION:-1.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -71,6 +71,9 @@ find -L . \
python setup.py install --root=$PKG
mkdir -p $PKG/usr/bin
mv $PKG/usr/bin/rename $PKG/usr/bin/pyrename
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true