偶尔看到了一个别人点子,觉得挺好,记录下来,也许以后用得上。
有这样一个产品(项目),目录下有很多的可执行文件(.exe)。GUI调用这些可执行文件是通过makefile来做的。另外,在整个项目融合了cygwin,使得在命令行下使用起来非常方便。
批处理:
@echo off
set CYGWIN=nodosfilewarning
set PATH=%cd%;%cd%/../tools/cygwin/bin;%cd%/scripts;%PATH%
mount -fb -u '%cd%/../tools/cygwin/' /
mount -fb -u '%cd%/../tools/cygwin/tmp' /tmp
mount -fb -u '%cd%/../tools/cygwin/bin' /usr/bin
title WindowTitle
if not "%1" == "" (
set CURRENT_PATH=%1
)
tcsh -l