6 mingw32-
*.noarch.rpm|mingw64-
*.noarch.rpm|
*/mingw32-
*.noarch.rpm|
*/mingw64-
*.noarch.rpm
)
7 package
=`rpm -qp $F 2>/dev/null`
20 origname
=`rpm -qp --queryformat='%{NAME}' $F 2>/dev/null`
27 shortpackage
="$name"_
`rpm -qp --queryformat='%{VERSION}-%{RELEASE}'_win${bits} $F 2>/dev/null`
28 shortpackage
=${shortpackage#mingw32-}
29 shortpackage
=${shortpackage#mingw64-}
31 shortname
=${shortname#mingw32-}
32 shortname
=${shortname#mingw64-}
34 #rpm2cpio $F | lzcat | (cd $tmp && cpio --quiet -id)
35 rpm2cpio
$F |
(cd $tmp && cpio --quiet -id)
38 zipfile
="$here/$shortpackage.zip"
40 (cd usr
/${cpu}-pc-mingw32/sys-root
/mingw
&& zip -q -r -D $zipfile .
)
41 if [ -d usr
/share
/doc
/packages
/$origname ] ; then
42 mv usr
/share
/doc
/packages
/$origname usr
/share
/doc
/packages
/$shortname
43 (cd usr
&& zip -q -r -D $zipfile share
/doc
/packages
/$shortname)
46 unzip -l $zipfile >manifest
/$shortpackage.mft
47 zip -q $zipfile manifest
/$shortpackage.mft
48 N
=`unzip -l $zipfile | wc -l | sed -e 's/^ *\([0-9]*\).*/\1/'`
50 unzip -l $zipfile |
sed -e "1,3 d" -e "$Nm1,$N d" |
awk '{print $4}' |
grep -v -E '/$' >manifest
/$shortpackage.mft
51 zip -q $zipfile manifest
/$shortpackage.mft
57 echo $F is not a mingw32
/64 RPM package
>&2
62 echo $F is not a mingw32
/64 RPM package
>&2