From 5fc5e16300332f37352cc9e249429de4708f538c Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 1 Oct 2014 14:14:45 +0200 Subject: xbump: replace `...` by $(...) --- xbump | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xbump') diff --git a/xbump b/xbump index 9de5833..865d5d0 100755 --- a/xbump +++ b/xbump @@ -4,7 +4,7 @@ cd $(xdistdir) pkg=$1; shift -[ -z "$pkg" ] && pkg=`basename $PWD` +[ -z "$pkg" ] && pkg=$(basename $PWD) version=$(./xbps-src show "$pkg" | sed -n '/^version/s/[^:]*:[\t]*//p') if [ -n "$(git ls-files srcpkgs/"$pkg"/template)" ]; then @@ -13,10 +13,10 @@ else msg="New package: $pkg-$version" fi -spkpattern=`xsubpkg "$pkg" | tr '\n' '|' | sed 's/\(.*\)|/^(\1)$/'` -shlibs=`git diff common/shlibs | grep "^+[^+]" | \ - sed "s/^+[^ ]\+ \(.*\)-[^-]\+_[0-9]\+$/\1/"` -if [ -n "`echo "$shlibs" | grep -vE "$spkpattern"`" ]; then +spkpattern=$(xsubpkg "$pkg" | tr '\n' '|' | sed 's/\(.*\)|/^(\1)$/') +shlibs=$(git diff common/shlibs | grep "^+[^+]" | \ + sed "s/^+[^ ]\+ \(.*\)-[^-]\+_[0-9]\+$/\1/") +if [ -n "$(echo "$shlibs" | grep -vE "$spkpattern")" ]; then echo "common/shlibs contains uncommitted changes for other packages." 2>&1 exit 1 elif [ -n "$shlibs" ]; then -- cgit 1.4.1