From: Shiar Date: Wed, 28 Nov 2007 03:54:21 +0000 (+0100) Subject: scmtomap: extract map data from scm X-Git-Url: http://git.shiar.nl/perl/schtarr.git/commitdiff_plain/d6d562d921c72ddc11597a2c45fdc5182d5907cf scmtomap: extract map data from scm Perl Archive::MoPaQ map extractor prototype. Assumes the data to be the first file part, which certainly isn't always correct (detection later). Can only extract to an external file rightnow. --- diff --git a/scmtomap b/scmtomap new file mode 100755 index 0000000..1c24020 --- /dev/null +++ b/scmtomap @@ -0,0 +1,14 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +use Archive::MoPaQ; + +@ARGV or die "Usage: $0 filename.scm\n"; + +my $mpq = Archive::MoPaQ->new or die; +print $mpq->open($ARGV[0]); +$mpq->listopen(""); +$mpq->extract(1); +