Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Support setting the binary file/product versions in the Win32 resources. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6b8ef6a4fd5610f5f0cc648c59511d6e |
User & Date: | mistachkin 2012-08-30 01:56:47 |
Context
2012-08-30
| ||
02:04 | Simplify the mkversion changes from the previous commit. ... (check-in: ae85ba15 user: mistachkin tags: trunk) | |
01:56 | Support setting the binary file/product versions in the Win32 resources. ... (check-in: 6b8ef6a4 user: mistachkin tags: trunk) | |
2012-08-29
| ||
23:34 | The --force flag change should have been on trunk. DRH should follow his own checklists! ... (check-in: 5c420b16 user: drh tags: trunk) | |
Changes
Changes to src/mkversion.c.
︙ | ︙ | |||
9 10 11 12 13 14 15 | */ #include <stdio.h> #include <string.h> int main(int argc, char *argv[]){ FILE *m,*u,*v; char *z; | | > > > > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | */ #include <stdio.h> #include <string.h> int main(int argc, char *argv[]){ FILE *m,*u,*v; char *z; int i, x, d; char b[1000]; char b2[1000]; char vx[1000]; memset(b,0,sizeof(b)); memset(b2,0,sizeof(b2)); memset(vx,0,sizeof(vx)); u = fopen(argv[1],"r"); fgets(b, sizeof(b)-1,u); fclose(u); for(z=b; z[0] && z[0]!='\r' && z[0]!='\n'; z++){} *z = 0; printf("#define MANIFEST_UUID \"%s\"\n",b); printf("#define MANIFEST_VERSION \"[%10.10s]\"\n",b); |
︙ | ︙ | |||
49 50 51 52 53 54 55 56 57 | x = 0; if( z[0]==0 ) break; } z++; } for(z=vx; z[0]=='0'; z++){} printf("#define RELEASE_VERSION_NUMBER %s\n", z); return 0; } | > > > > > > > > > > > > > > > | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | x = 0; if( z[0]==0 ) break; } z++; } for(z=vx; z[0]=='0'; z++){} printf("#define RELEASE_VERSION_NUMBER %s\n", z); strcpy(b2,b); d = 0; for(z=b2; z[0]; z++){ if( z[0]!='.' ) continue; if ( d<3 ){ z[0] = ','; d++; }else{ z[0] = '\0'; break; } } printf("#define RELEASE_RESOURCE_VERSION %s", b2); while( d<3 ){ printf(",0"); d++; } printf("\n"); return 0; } |
Changes to win/fossil.rc.
︙ | ︙ | |||
56 57 58 59 60 61 62 | IDI_FOSSIL ICON "fossil.ico" /* * Version */ VS_VERSION_INFO VERSIONINFO | | | | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | IDI_FOSSIL ICON "fossil.ico" /* * Version */ VS_VERSION_INFO VERSIONINFO FILEVERSION RELEASE_RESOURCE_VERSION PRODUCTVERSION RELEASE_RESOURCE_VERSION FILEFLAGSMASK 0x3F #if defined(_DEBUG) FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS VOS__WINDOWS32 |
︙ | ︙ |