]> pd.if.org Git - zpackage/blob - zpm-ipkgfile
large commit of C work
[zpackage] / zpm-ipkgfile
1 #!/bin/sh
2
3 pkgfile=$1
4 shift
5
6 for path in $*; do
7         mkdir -p tmp/$(dirname $path)
8         fhash=$(sqlite3 $pkgfile "select hash from packagefiles where path = '$path';")
9         ./zpm-extract $pkgfile $fhash ./tmp/$path
10 done