update build number automatically. approved by: briano

This commit is contained in:
donm%netscape.com 1998-07-16 23:58:00 +00:00
Родитель d2c5578df0
Коммит ad0dcced36
1 изменённых файлов: 27 добавлений и 0 удалений

27
config/bdate.c Normal file
Просмотреть файл

@ -0,0 +1,27 @@
/*
** Needs the NPL blurb.
**
** bdate.c: Possibly cross-platform date-based build number
** generator. Output is YYJJJ, where YY == 2-digit
** year, and JJJ is the Julian date (day of the year).
**
** Author: briano@netscape.com
**
*/
#include <stdio.h>
#include <time.h>
#ifdef SUNOS4
#include "sunos4.h"
#endif
void main(void)
{
time_t t = time(NULL);
struct tm *tms;
tms = localtime(&t);
printf("500%02d%03d%02d\n", tms->tm_year, 1+tms->tm_yday, tms->tm_hour);
exit(0);
}