1 2 3 4 5 6
#!/bin/sh # xsubpkg PKG - lists all subpackages of a package PKG=$1 cd $(xdistdir) find -L srcpkgs -maxdepth 2 -samefile srcpkgs/"$PKG"/template | cut -d/ -f 2