mkimg_sitecom.pl 225 B

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