dkrutsko / Version

Generates c-style preprocessor definitions for the current date and time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version

This application generates c-style preprocessor definitions for the current date and time and stores them in the specified file. Generated definitions are customizable by the formatting options described below. Date is set to the current number of days since January 01, 2000. Time is set to the current number of seconds since midnight divided by two.

WARNING: Existing contents of the file will be destroyed.

Input

$ Version [Format] [Filename]

Output

  • 0 - No errors occurred
  • 1 - No filename was passed
  • 2 - File could not be opened

Format

  • 0x - Output as hex (e.g. 0xD, 0xT)
  • D - Current date
  • T - Current time

Default

$ Version BUILD=D REVISION=T [Filename]

Author

About

Generates c-style preprocessor definitions for the current date and time

License:zlib License


Languages

Language:C 85.5%Language:Makefile 14.5%