mirror of
https://github.com/softwarejanitor/ProDOS.git
synced 2024-10-31 17:04:28 +00:00
34 lines
520 B
Perl
34 lines
520 B
Perl
|
#!/usr/bin/perl -w
|
||
|
|
||
|
#
|
||
|
# prodelete.pl:
|
||
|
#
|
||
|
# Utility to delete 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";
|
||
|
|
||
|
delete_file($pofile, $filename, $debug);
|
||
|
|
||
|
1;
|
||
|
|