X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-ipkgfile;fp=zpm-ipkgfile;h=0f9440c9c928256f2dfb63b663e68833772f7940;hb=ecdd57da7df775c039aee834e1f74172004f352b;hp=0000000000000000000000000000000000000000;hpb=fa23ca4b77cd45ed4996eafc1fa714e12a72439e;p=zpackage diff --git a/zpm-ipkgfile b/zpm-ipkgfile new file mode 100755 index 0000000..0f9440c --- /dev/null +++ b/zpm-ipkgfile @@ -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