From 82a4415efdd8f3536885782ffe2b8e3378a04a63 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 21 Mar 2016 23:49:14 -0400 Subject: xsubpkg: add flag to only show main package Closes: #37 [via git-merge-pr] --- xsubpkg | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'xsubpkg') diff --git a/xsubpkg b/xsubpkg index 1cb9066..ce236cf 100755 --- a/xsubpkg +++ b/xsubpkg @@ -1,6 +1,12 @@ #!/bin/sh -# xsubpkg PKG - lists all subpackages of a package +# xsubpkg [-m] PKG - lists all subpackages of a package + +followsym="-L" + +case "$1" in + -m) followsym="-P"; shift +esac PKG=$1 cd $(xdistdir) -find -L srcpkgs -maxdepth 2 -samefile srcpkgs/"$PKG"/template | cut -d/ -f 2 +find $followsym srcpkgs -maxdepth 2 -samefile srcpkgs/"$PKG"/template | cut -d/ -f 2 -- cgit 1.4.1