summary refs log tree commit diff
path: root/xsubpkg
diff options
context:
space:
mode:
authorEnno Boland <g@s01.de>2014-09-30 15:04:22 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-10-10 16:44:40 +0200
commit01453be0f1cdfbbac1eb2a99991bfa1958537b98 (patch)
treec20ceddeb04ebc21b89bbb20e306aa641a163dd6 /xsubpkg
parente5db7b287e90ebd76eb9a6e0aaaa7b2c720cf041 (diff)
downloadxtools-01453be0f1cdfbbac1eb2a99991bfa1958537b98.tar.gz
xtools-01453be0f1cdfbbac1eb2a99991bfa1958537b98.tar.xz
xtools-01453be0f1cdfbbac1eb2a99991bfa1958537b98.zip
xsubpkg: new tool which searches for all subpackages of a package.
Diffstat (limited to 'xsubpkg')
-rwxr-xr-xxsubpkg6
1 files changed, 6 insertions, 0 deletions
diff --git a/xsubpkg b/xsubpkg
new file mode 100755
index 0000000..0a2f48e
--- /dev/null
+++ b/xsubpkg
@@ -0,0 +1,6 @@
+#!/bin/sh
+# xsubpkg PKG - lists all subpackages of a package
+
+PKG=$1
+cd `xdistdir`
+find -L srcpkgs -samefile srcpkgs/"$PKG"/template | cut -d/ -f 2