QBUILD v1.00 Utility

QBUILD is a simply (almost useless) utility that will increment a number
is a file to be used as the 'build' number of a project.

Simply add QBUILD into your makefiles and whenever your project is 'made'
  QBUILD will increment the number in it's build file.

But first you must build a 'build' file like so:
  QBUILD /C <filename.bld>
    or
  QBUILD /ASM <filename.bld>
There are 2 formats QBUILD supports (C and ASM files).

You may also use:
  QBUILD /R <filename.bld>
at anytime to reset the counter.

Inside the Build file are two simple equates (#definition) that can be used
in your project to store/print the build number as needed.
  build_num = defines the #
  build_str = defines the # as a string

Because the counter starts at 1 you should use QBUILD 'after' each make of
your project.

'C' example:
CFILE.C:
  #include "cfile.bld"
  #include <stdio.h>

  void main(void) {
    printf("Build #%d",build_num);
  }
MAKEFILE:
  all : cfile.exe

  cfile.exe : cfile.c
    ... compile cfile.c here ...
    QBUILD cfile.bld

'ASM' example:
ASMFILE.ASM:
  .386
  .model flat,c

  include cfile.bld
  include stdio.inc

  .data
    msg db 'Build #%d',0

  .code
  main proc
    push build_num
    push offset msg
    call printf
    ret
  main endp

MAKEFILE:
  all : asmfile.exe

  asmfile.exe : asmfile.asm
    ... compile asmfile.asm here ...
    QBUILD cfile.bld



URL : http://qforce.home.ml.org
Email : sub_death@geocities.com

Enjoy...
