技术开发 频道

配置管理每日构建(三)

    3.2.6. NBDSRCCTL/PROMOTION
    记录里程碑版本号。例如: 
    JOHNSON-V-1-0-1

    A. Nightly Build命令行

Synopsis: nightly.sh [options...] [command...]
    Options :
        -release (-r)
            build RELEASE version (default)
        -engineer (-e)
            build engineer version
        -force (-f) 
            force build.

    Command:
        nightly (n)
            All commands are bind to one. there are three steps to run nightly.
            update, compile, link, post
        update (up)
            1st step of running nightly.
            update_source_code         : step 1.1
            update_version_file        : step 1.2
            update_rc_file             : step 1.3
        compile (c)
            2nd step of running nightly.
            run custom make.bat        : step 2.1
        link (l)
            3rd step of running nightly.
            run custom link.bat        : step 3.1
        post (l)
            4th step of running nightly.
            cp package to ftp_dir      : step 4.1

          checkin version file       : step 4.2
    Other Command:
        help 
            This screen.
        config
            Additional help.
        run nightly.sh config to see additional help.

    B. 编程工具的命令行支持

    B.1. Unix/Linux

    使用autoconf/automake/autoheader工具
    用autoconf/automake/autoheader工具来处理各种移植性的问题,用这些工具完成系统配置信息的收集,制作makefile文件。然后在打算编译源码时只需要通过 “configure; make”这样简单的命令就可以得到干净利落的编译。
    GNU Makefile 参见 GNU Makefile和configure
    BSD Makefile 参见 FreeBSD Porter's Handbook

    B.2. Visual C++
    msdev 提供命令行编译支持,可以直接使用 .dsw, .dsp 文件执行命令行编译。
   
    Usage:
      MSDEV [myprj.dsp|mywksp.dsw]  - load project/workspace
            []            - load source file
            /?                      - display usage information
            /EX          - execute a VBScript macro
            /OUT          - redirect command line output to a file
            /USEENV                 - ignore tools.options.directories settings
            /MAKE [] [...]  - build specified target(s)
                  [ - ]
                  [[|ALL] - [DEBUG|RELEASE|ALL]]
                  /CLEAN            - delete intermediate files but don't build
                  /REBUILD          - clean and build
                  /NORECURSE        - don't build dependent projects

    例如:MSDEV myprj.dsp /MAKE "ALL - Win32 Release" /REBUILD

0
相关文章