1
0
mirror of https://github.com/KolibriOS/kolibrios.git synced 2024-12-20 05:42:34 +03:00
kolibrios/programs/develop/libraries/menuetlibc/mkversion.c
right-hearted 6496d04506 Adding menuetlibc back to its place in /programs/develop/libraries
This version of menuetlibc was taken from revision 4743, right before I made any changes

git-svn-id: svn://kolibrios.org@4973 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-06-12 10:43:21 +00:00

17 lines
586 B
C

#include<stdio.h>
int a,b,c;
int main(void)
{
fscanf(stdin,"%u.%u.%u",&a,&b,&c);
fprintf(stdout,"/* This file is automatically generated by mkversion. */\n");
fprintf(stdout,"/* Please do not modify it unless you know what you are doing. */\n");
fprintf(stdout,"#define MENUET_LIBC_VERSION \"%u.%u.%u\"\n",a,b,c);
fprintf(stdout,"\n#ifdef INCLUDE_RCS_ID\n");
fprintf(stdout,"static const char * ___menuet__libc_version_%u_%u_%u=\"",a,b,c);
fprintf(stdout,"MenuetOS GNU C library port by Jarek Pelczar. This file is \" __FILE__ ; \n");
fprintf(stdout,"#endif\n");
return 0;
}