]> code.delx.au - monosys/blobdiff - archpkg/repo-ls
Rename all the things
[monosys] / archpkg / repo-ls
diff --git a/archpkg/repo-ls b/archpkg/repo-ls
new file mode 100755 (executable)
index 0000000..44f3b2b
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+set -eu
+
+tar -Oxf "$1" | \
+    awk 'BEGIN {RS=""} $1 == "%NAME%" {printf "%s ", $2} $1 == "%VERSION%" {print $2}'