makedep.pl
资源名称:8202s.rar [点击查看]
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:1k
源码类别:
DVD
开发平台:
C/C++
- #! /home/potatooo/xcc/bin/perl
- #
- # makedep.pl
- #
- for ($argvcnt=0; $argvcnt<@ARGV && $ARGV[$argvcnt] =~ /^-(.*)/; $argvcnt++)
- {
- if ($ARGV[$argvcnt] =~ /^-z/)
- {
- $argvcnt++;
- last;
- }
- die "$0: illegal option $ARGV[$argvcnt]";
- }
- if ($argvcnt<@ARGV) {
- open(STDIN, "<$ARGV[$argvcnt]") || die "$0: err: can't open $ARGV[$argvcnt]";
- $argvcnt++;
- }
- if ($argvcnt<@ARGV) {
- open(STDOUT, ">$ARGV[$argvcnt]") || die "$0: err: can't open $ARGV[$argvcnt]";
- $argvcnt++;
- }
- #set output to binary mode
- binmode STDOUT;
- while (<STDIN>)
- {
- s/^(.*).os*:s*(.*)/MIPS/1.o MIPS/1.d : \n 2/g ;
- print $_;
- }
- close(STDIN);
- close(STDOUT);