mirror of
https://github.com/softwarejanitor/ProDOS.git
synced 2025-01-01 09:29:33 +00:00
35 lines
610 B
Perl
35 lines
610 B
Perl
#!/usr/bin/perl -w
|
|
|
|
#
|
|
# procopy.pl:
|
|
#
|
|
# Utility to copy a file on an Apple II ProDOS .po disk image.
|
|
#
|
|
# 20190228 LSH
|
|
#
|
|
|
|
use strict;
|
|
|
|
use ProDOS;
|
|
|
|
my $debug = 0;
|
|
|
|
while (defined $ARGV[0] && $ARGV[0] =~ /^-/) {
|
|
# Debug
|
|
if ($ARGV[0] eq '-d') {
|
|
$debug = 1;
|
|
shift;
|
|
} else {
|
|
die "Unknown command line argument $ARGV[0]\n";
|
|
}
|
|
}
|
|
|
|
my $pofile = shift or die "Must supply .po filename\n";
|
|
my $filename = shift or die "Must supply filename (on disk image)\n";
|
|
my $copy_filename = shift or die "Must supply copy filename (on disk image)\n";
|
|
|
|
copy_file($pofile, $filename, $copy_filename, $debug);
|
|
|
|
1;
|
|
|