mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/rename: Rename executable to pyrename.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
24f8266ea3
commit
f2a368987a
2 changed files with 7 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue