强制doxygen从版本文件中选择一个 [英] force doxygen to pick one from versioned files

查看:96
本文介绍了强制doxygen从版本文件中选择一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天才开始使用doxygen.你会怎么做.

Just started using doxygen today. How would you go about this.

给出以下目录结构

-rootDir
    -dirA
        -dirAFile_ver01
        -dirAFile_ver02
        -dirAFile_ver03
        -dirAFile_ver04
    -dirB
        -dirBFile_ver01
        -dirBFile_ver02
        -dirBFile_ver03
    -dirC
        -dirCFile_ver01
        -dirCFile_ver02

我对doxygen的期望是仅从单个目录中获取文件的最新版本,例如dirAFile_ver04 from dirAdirBFile_ver03 from dirB等.我已经阅读了有关 FILE_VERSION_FILTER 标记的信息,但无法使其正常工作.使用CMD命令列出最后一个文件(按名称排序)
FILE_VERSION_FILTER = FOR /f %i IN ('dir /o:n /b') DO (set LAST_VER=%i echo %LAST_VER%)

My expectations from doxygen are to take only last version of file from single dir e.g. dirAFile_ver04 from dirA, dirBFile_ver03 from dirB etc. I've read about FILE_VERSION_FILTER tag, but I'm not able to make it work. Using CMD command for listing last file (sort by name)
FILE_VERSION_FILTER = FOR /f %i IN ('dir /o:n /b') DO (set LAST_VER=%i echo %LAST_VER%)

如果所有这些文件都位于单个目录中,还有可能吗?

Also would it be possible if all those files would lie in single directory?

-rootDir
    -dirAFile_ver01
    -dirAFile_ver02
    -dirAFile_ver03
    -dirAFile_ver04
    -dirBFile_ver01
    -dirBFile_ver02
    -dirBFile_ver03
    -dirCFile_ver01
    -dirCFile_ver02
    -justFile_0.0.1
    -justFile_0.0.2

预先感谢

推荐答案

FILE_VERSION_FILTER( http://www.doxygen.nl/manual/config.html#cfg_file_version_filter )绝对不适合您的用途.在目录中拥有文件的不同版本是无法完成的,这是版本控制系统的任务(在构建过程中如何处理?).

The FILE_VERSION_FILTER (http://www.doxygen.nl/manual/config.html#cfg_file_version_filter) is definitely not suitable for the purpose you have. Having different versions of a file in a directory is something that is not done, it is a task of a version control system (how do you handle this during builds?).

FILE_VERSION_FILTER来自版本控制系统或您在其中放置的任何其他命令中的一些信息,并将其输出到标准输出,并将其用于某些输出(用于标头).

The FILE_VERSION_FILTER gets from a version control system or any other command you put there some information and outputs it to standard output and uses it in some output (for headers).

也许您可以使用INPUT_FILTER完成某些操作(检查脚本中的文件名是否为最后一个,如果是,则输出它,否则不输出任何东西.我在这里没有进行任何测试).另一种可能是FILTER_PATTERNS,但我对此表示怀疑,因为它使用了正则表达式,而且我不知道有任何正则表达式可以做到这一点.

Maybe you can accomplish something with INPUT_FILTER (check the filename in your script to see if it is the last one and if so output it, otherwise output nothing. I didn't test anything here). Another possibility might be with FILTER_PATTERNS but I doubt this as it uses a regular expression and I'm not aware of any regular expression that can do this.

这篇关于强制doxygen从版本文件中选择一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆