文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>清理 ghc 产生的中间文件的脚本

清理 ghc 产生的中间文件的脚本

时间:2009-05-24  来源:MMMIX

清理 ghc 产生的中间文件的脚本:

#!/usr/bin/perl

use warnings;
use strict;

use File::Basename;

# remove ghc intermediate files

my $rm = 'rm -f';

my @files;

my @suffixes = qw(.o .hi .hc .s .tix .aux .prof .hp .ps);
my @ssuffixes = qw(.hs .lhs .hs-boot .lhs-boot);

map { push @files, "*$_" } @suffixes;
push @files, ('*.hi-boot', '*.o-boot');

map { push @files, (fileparse($_, qr/\.[^.]*/))[0] }
    (@ARGV > 0 ? @ARGV : map { glob("*$_") } @ssuffixes);

print "$rm $_\n" for @files;

相关阅读 更多 +
排行榜 更多 +
宝宝情商养成宝宝巴士

宝宝情商养成宝宝巴士

休闲益智 下载
燥热手机版

燥热手机版

飞行射击 下载
巨人狙击手安卓版

巨人狙击手安卓版

飞行射击 下载