You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
527 B
20 lines
527 B
#genmk.pl
|
|
#this script can be helpful in generating mkrsys
|
|
#usage: genmk.pl inputfile src_dir
|
|
#
|
|
# pass in two columsn to STDIN,
|
|
# left side = src name
|
|
# right side = dest name
|
|
#
|
|
# nadima
|
|
$dest_prefix = "\$(binaries)\\";
|
|
$src_prefix = $ARGV[1];
|
|
open(INFILE, $ARGV[0]);
|
|
while(<INFILE>)
|
|
{
|
|
chomp; #eat \n
|
|
s/(\S*)\s*(\S*)//;
|
|
print $dest_prefix . $2 . ": " . $src_prefix . $1 . "\n";
|
|
# print $dest_prefix . $2 . ": " . "\$(tscbin)\\idfile" . "\n";
|
|
print " copy \$** \$@\n\n";
|
|
}
|