⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fixwin32mak.pl

📁 Apache V2.0.15 Alpha For Linuxhttpd-2_0_15-alpha.tar.Z
💻 PL
字号:
## fixwin32mak.pl ::: Apache/Win32 maintanace program## This program, launched from the build/ directory, replaces all nasty absoulute paths# in the win32 .mak files with the appropriate relative root.## Run this program prior to committing or packaging any newly exported make files.use Cwd;use IO::File;use File::Find;chdir '..';$root = cwd;# ignore our own direcory (allowing us to move into any parallel tree)$root =~ s|^.:(.*)/.*?$|cd "$1|;$root =~ s|/|\\\\|g;print "Testing " . $root . "\n";find(\&fixcwd, '.');sub fixcwd {     if (m|.mak$|) {# note repl is broken... isn't freindly to directories with periods.	$repl = $File::Find::dir;# replace ./ with the parent (moving into any parallel tree)        $repl =~ s|^\./|../|;# replace each directory in this path with .. to get back to our root        $repl =~ s|[^/]+|..|g;        $repl =~ s|/|\\|;        $oname = $_;	$tname = '.#' . $_;	$verchg = 0;print "Processing " . $_ . "\n";	$srcfl = new IO::File $_, "r" || die;	$dstfl = new IO::File $tname, "w" || die;	while ($src = <$srcfl>) {	    if ($src =~ s|^(\s*)$root|$1cd "$repl|) {		$verchg = -1;	    }            print $dstfl $src; 	}	undef $srcfl;	undef $dstfl;	if ($verchg) {	    unlink $oname || die;	    rename $tname, $oname || die;	    print "Corrected absolute paths within " . $oname . " in " . $File::Find::dir . "\n"; 	}	else {	    unlink $tname;	}    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -