Mercurial > hg > easyhg-kdiff3
annotate kdiff3/src/version.c @ 16:14900b5bf88c
Placing the version into a separate include: version.h
version.c extract the version number
author | friseb123 |
---|---|
date | Tue, 07 Oct 2003 08:41:06 +0000 |
parents | |
children | b6a7e96a4f2c |
rev | line source |
---|---|
friseb123@16 | 1 #include <stdio.h> |
friseb123@16 | 2 #include "version.h" |
friseb123@16 | 3 main(int argv,char** argc) |
friseb123@16 | 4 { |
friseb123@16 | 5 if (argv<=1) |
friseb123@16 | 6 { |
friseb123@16 | 7 printf("%s\n",VERSION); |
friseb123@16 | 8 } |
friseb123@16 | 9 else if (strcmp(argc[1],"dos")==0) |
friseb123@16 | 10 { |
friseb123@16 | 11 printf("set MUI_VERSION=\"%s\"\n",VERSION); |
friseb123@16 | 12 } |
friseb123@16 | 13 else if (strcmp(argc[1],"nsis")==0) |
friseb123@16 | 14 { |
friseb123@16 | 15 printf("!define MUI_VERSION=\"%s\"\n",VERSION); |
friseb123@16 | 16 } |
friseb123@16 | 17 else if (strcmp(argc[1],"unix")==0) |
friseb123@16 | 18 { |
friseb123@16 | 19 printf("#define MUI_VERSION=\"%s\"\n",VERSION); |
friseb123@16 | 20 } |
friseb123@16 | 21 } |