about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEnno Boland <g@s01.de>2014-10-01 14:14:45 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-10-10 16:44:40 +0200
commit5fc5e16300332f37352cc9e249429de4708f538c (patch)
tree178ecb9e11416d00f8e16983b6d4e626f965aa21
parentdd5c240292b1e2f32240e26cc3a4dafc96e93e3a (diff)
downloadxtools-5fc5e16300332f37352cc9e249429de4708f538c.tar.gz
xtools-5fc5e16300332f37352cc9e249429de4708f538c.tar.xz
xtools-5fc5e16300332f37352cc9e249429de4708f538c.zip
xbump: replace `...` by $(...)
-rwxr-xr-xxbump10
1 files changed, 5 insertions, 5 deletions
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