desktop/bashrun2: Fixed (Don't clobber config files)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2012-09-27 22:33:27 -04:00 committed by Robby Workman
parent 60ddb9241d
commit b4124b80c7
2 changed files with 5 additions and 1 deletions

View file

@ -24,7 +24,7 @@
PRGNAM=bashrun2
VERSION=${VERSION:-0.2.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -81,6 +81,8 @@ make
make install-strip DESTDIR=$PKG
mv $PKG/etc/xdg/bashrun2/bashrun2.rc $PKG/etc/xdg/bashrun2/bashrun2.rc.new
mv $PKG/etc/xdg/bashrun2/plugins/terminal.rc $PKG/etc/xdg/bashrun2/plugins/terminal.rc.new
mv $PKG/etc/bash_completion.d/bashrun2 $PKGetc/bash_completion.d/bashrun2.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View file

@ -12,3 +12,5 @@ config() {
}
config etc/xdg/bashrun2/bashrun2.rc.new
config etc/xdg/bashrun2/plugins/terminal.rc.new
config etc/bash_completion.d/bashrun2.new