blob: cfd5e652f0c183b32f4256a772655d77f7b2234a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/perl
open (bzimg, @ARGV[0]);
while (<bzimg>) { $i .= $_; }
$i .= pack "v", -(unpack "%v*", $i);
print "CSYS";
print pack("V", length($i));
print pack("V", 0);
print "WRRM";
print pack("V", length($i));
print $i;
|