]> pd.if.org Git - zpackage/blobdiff - zpm-ipkgfile
large commit of C work
[zpackage] / zpm-ipkgfile
diff --git a/zpm-ipkgfile b/zpm-ipkgfile
new file mode 100755 (executable)
index 0000000..0f9440c
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+pkgfile=$1
+shift
+
+for path in $*; do
+       mkdir -p tmp/$(dirname $path)
+       fhash=$(sqlite3 $pkgfile "select hash from packagefiles where path = '$path';")
+       ./zpm-extract $pkgfile $fhash ./tmp/$path
+done