]> pd.if.org Git - zpackage/blobdiff - bin/zpm-showpkg
move programs to bin for build
[zpackage] / bin / zpm-showpkg
diff --git a/bin/zpm-showpkg b/bin/zpm-showpkg
new file mode 100755 (executable)
index 0000000..f55cb0a
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+{
+for pkgfile in $*; do
+
+       zpm shell $pkgfile <<EOS
+.separator "\t"
+select package, version, release, path || case when hash is null then '/' else '' end from packagefiles
+;
+EOS
+
+done
+} | column -t