rzel / rudix

Automatically exported from code.google.com/p/rudix
Other
0 stars 0 forks source link

'make prep' cannot expand (some) ZIP sources #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some sources compressed with ZIP cannot be uncompressed by using 'explode' 
macro.

{{{
define explode
case `file -b -z --mime-type $(Source)` in \
        application/x-tar) tar zxf $(Source) ;; \
        application/zip) unzip -o -a -d $(BuilDir) $(Source) ;; \
        *) false ;; \
esac
endef
}}}

In the case of 'gmpy-1.15.zip' we have:

{{{
file -b -z --mime-type gmpy-1.15.zip 
text/plain
}}}

which is obvious not matched in the above rules.

Original issue reported on code.google.com by ruda.moura@gmail.com on 9 Apr 2012 at 10:09

GoogleCodeExporter commented 9 years ago

Original comment by ruda.moura@gmail.com on 13 Apr 2012 at 9:55