In the shell script that builds the application I get the system date and time and then pass it to the xHarbour compiler as a #define by using the -d compiler option.
The option is built as follows:
Code: Select all
builddate=$(date +"%d/%m/%Y@%T")
strBD=""
strBD+='-dkBDATE="'
strBD+=${builddate}
strBD+='"'
Code: Select all
./../../xharbour/bin/harbour ${1}.prg -n -I./../include -I./../../xharbour/include -q0 ${strBD}
Regards
xProgrammer