home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 10
/
AU_CD10.iso
/
Updates
/
Perl
/
RPC
/
!Perl
/
scripts
/
BinObjs
next >
Wrap
Text File
|
1998-07-14
|
445b
|
25 lines
#! perl -w
use RISCOS;
die "$0 <Objectprefix> <Sourceprefix> <Pattern>" if( $#ARGV < 1 );
$obj = shift;
$prefix = shift;
foreach ( @ARGV )
{
foreach $source ( RISCOS::Filespec::globlist( "$prefix$_" ) )
{
$source = substr $source, length $prefix;
$source =~ s/\.c\./\.o\./;
$source =~ s/\.s\./\.o\./;
$source = $obj . $source;
if( -f $source )
{
print "$source\n";
unlink( "$source" ) or warn $!;
}
}
}