*** empty log message ***

svn path=/trunk/boinc/; revision=3043
This commit is contained in:
Rom Walton 2004-03-08 06:32:42 +00:00
parent ec84577c1a
commit b71ff61a81
8 changed files with 136 additions and 84 deletions

View File

@ -10397,3 +10397,16 @@ Rom Mar 6 2004
lib/
util.c, .h
Rom Mar 6 2004
- Updated the version setting code so that it will include the new file resources for Windows
/
set-verson
client/
makefile.am
client/win/
update-boinc-cli-version
update-boinc-dll-version
update-boinc-gui-version
update-boinc-ss-version

View File

@ -66,10 +66,19 @@ client-bin-gz: @CLIENT_BIN_FILENAME@.gz
win/win_config.h: $(top_srcdir)/config.h
grep '#define.*VERSION' $^ > $@
win/resource.rc: $(top_srcdir)/config.h
cd win && ./update-resource-version
win/boinc_cli.rc: $(top_srcdir)/config.h
cd win && ./update-boinc-cli-version
version: win/win_config.h win/resource.rc
win/boinc_dll.rc: $(top_srcdir)/config.h
cd win && ./update-boinc-dll-version
win/boinc_gui.rc: $(top_srcdir)/config.h
cd win && ./update-boinc-gui-version
win/boinc_ss.rc: $(top_srcdir)/config.h
cd win && ./update-boinc-ss-version
version: win/win_config.h win/boinc_cli.rc win/boinc_dll.rc win/boinc_gui.rc win/boinc_ss.rc
# make a hard link to the client name.
@CLIENT_BIN_FILENAME@: boinc_client

View File

@ -0,0 +1,27 @@
#!/usr/bin/env python
# $Id$
# update boinc_cli.rc with version numbers.
import boinc_path_config
from Boinc.version import *
import os, re
version_string = '%d,%d,0,0' % (MAJOR_VERSION, MINOR_VERSION)
version_string_spaces = '"%d, %d, 0, 0\\\\0"' % (MAJOR_VERSION, MINOR_VERSION)
fn_boinc_cli_rc_old = 'boinc_cli.rc.old'
fn_boinc_cli_rc = 'boinc_cli.rc'
os.rename(fn_boinc_cli_rc, fn_boinc_cli_rc_old)
rc_boinc_cli_old = open(fn_boinc_cli_rc_old)
rc_boinc_cli = open(fn_boinc_cli_rc, 'w')
for line in rc_boinc_cli_old:
line = re.sub('( +(FILEVERSION|PRODUDUCTVERSION) +).*', '\\1'+version_string, line)
line = re.sub('( +VALUE "(FileVersion|ProductVersion)", +).*', '\\1'+version_string_spaces, line)
rc_boinc_cli.write(line)
print "Updated boinc_cli.rc to version %d.%02d" %(MAJOR_VERSION, MINOR_VERSION)

View File

@ -0,0 +1,27 @@
#!/usr/bin/env python
# $Id$
# update boinc_dll.rc with version numbers.
import boinc_path_config
from Boinc.version import *
import os, re
version_string = '%d,%d,0,0' % (MAJOR_VERSION, MINOR_VERSION)
version_string_spaces = '"%d, %d, 0, 0\\\\0"' % (MAJOR_VERSION, MINOR_VERSION)
fn_boinc_dll_rc_old = 'boinc_dll.rc.old'
fn_boinc_dll_rc = 'boinc_dll.rc'
os.rename(fn_boinc_dll_rc, fn_boinc_dll_rc_old)
rc_boinc_dll_old = open(fn_boinc_dll_rc_old)
rc_boinc_dll = open(fn_boinc_dll_rc, 'w')
for line in rc_boinc_dll_old:
line = re.sub('( +(FILEVERSION|PRODUDUCTVERSION) +).*', '\\1'+version_string, line)
line = re.sub('( +VALUE "(FileVersion|ProductVersion)", +).*', '\\1'+version_string_spaces, line)
rc_boinc_dll.write(line)
print "Updated boinc_dll.rc to version %d.%02d" %(MAJOR_VERSION, MINOR_VERSION)

View File

@ -0,0 +1,27 @@
#!/usr/bin/env python
# $Id$
# update boinc_gui.rc with version numbers.
import boinc_path_config
from Boinc.version import *
import os, re
version_string = '%d,%d,0,0' % (MAJOR_VERSION, MINOR_VERSION)
version_string_spaces = '"%d, %d, 0, 0\\\\0"' % (MAJOR_VERSION, MINOR_VERSION)
fn_boinc_gui_rc_old = 'boinc_gui.rc.old'
fn_boinc_gui_rc = 'boinc_gui.rc'
os.rename(fn_boinc_gui_rc, fn_boinc_gui_rc_old)
rc_boinc_gui_old = open(fn_boinc_gui_rc_old)
rc_boinc_gui = open(fn_boinc_gui_rc, 'w')
for line in rc_boinc_gui_old:
line = re.sub('( +(FILEVERSION|PRODUDUCTVERSION) +).*', '\\1'+version_string, line)
line = re.sub('( +VALUE "(FileVersion|ProductVersion)", +).*', '\\1'+version_string_spaces, line)
rc_boinc_gui.write(line)
print "Updated boinc_gui.rc to version %d.%02d" %(MAJOR_VERSION, MINOR_VERSION)

View File

@ -0,0 +1,26 @@
#!/usr/bin/env python
# $Id$
# update boinc_ss.rc with version numbers.
import boinc_path_config
from Boinc.version import *
import os, re
version_string = '%d,%d,0,0' % (MAJOR_VERSION, MINOR_VERSION)
version_string_spaces = '"%d, %d, 0, 0\\\\0"' % (MAJOR_VERSION, MINOR_VERSION)
fn_boinc_ss_rc_old = 'boinc_ss.rc.old'
fn_boinc_ss_rc = 'boinc_ss.rc'
os.rename(fn_boinc_ss_rc, fn_boinc_ss_rc_old)
rc_boinc_ss_old = open(fn_boinc_ss_rc_old)
rc_boinc_ss = open(fn_boinc_ss_rc, 'w')
for line in rc_boinc_ss_old:
line = re.sub('( +(FILEVERSION|PRODUDUCTVERSION) +).*', '\\1'+version_string, line)
line = re.sub('( +VALUE "(FileVersion|ProductVersion)", +).*', '\\1'+version_string_spaces, line)
rc_boinc_ss.write(line)
print "Updated boinc_ss.rc to version %d.%02d" %(MAJOR_VERSION, MINOR_VERSION)

View File

@ -1,80 +0,0 @@
#!/usr/bin/env python
# $Id$
# update boinc_cli.rc with version numbers.
# update boinc_dll.rc with version numbers.
# update boinc_gui.rc with version numbers.
# update boinc_ss.rc with version numbers.
import boinc_path_config
from Boinc.version import *
import os, re
version_string = '%d,%d,0,0' % (MAJOR_VERSION, MINOR_VERSION)
version_string_spaces = '"%d, %d, 0, 0\\\\0"' % (MAJOR_VERSION, MINOR_VERSION)
fn_boinc_cli_rc_old = 'boinc_cli.rc.old'
fn_boinc_cli_rc = 'boinc_cli.rc'
os.rename(fn_boinc_cli_rc, fn_boinc_cli_rc_old)
rc_boinc_cli_old = open(fn_boinc_cli_rc_old)
rc_boinc_cli = open(fn_boinc_cli_rc, 'w')
for line in rc_boinc_cli_old:
line = re.sub('( +(FILEVERSION|PRODUDUCTVERSION) +).*', '\\1'+version_string, line)
line = re.sub('( +VALUE "(FileVersion|ProductVersion)", +).*', '\\1'+version_string_spaces, line)
rc_boinc_cli.write(line)
print "Updated boinc_cli.rc to version %d.%02d" %(MAJOR_VERSION, MINOR_VERSION)
fn_boinc_dll_rc_old = 'boinc_dll.rc.old'
fn_boinc_dll_rc = 'boinc_dll.rc'
os.rename(fn_boinc_dll_rc, fn_boinc_dll_rc_old)
rc_boinc_dll_old = open(fn_boinc_dll_rc_old)
rc_boinc_dll = open(fn_boinc_dll_rc, 'w')
for line in rc_boinc_dll_old:
line = re.sub('( +(FILEVERSION|PRODUDUCTVERSION) +).*', '\\1'+version_string, line)
line = re.sub('( +VALUE "(FileVersion|ProductVersion)", +).*', '\\1'+version_string_spaces, line)
rc_boinc_dll.write(line)
print "Updated boinc_dll.rc to version %d.%02d" %(MAJOR_VERSION, MINOR_VERSION)
fn_boinc_gui_rc_old = 'boinc_gui.rc.old'
fn_boinc_gui_rc = 'boinc_gui.rc'
os.rename(fn_boinc_gui_rc, fn_boinc_gui_rc_old)
rc_boinc_gui_old = open(fn_boinc_gui_rc_old)
rc_boinc_gui = open(fn_boinc_gui_rc, 'w')
for line in rc_boinc_gui_old:
line = re.sub('( +(FILEVERSION|PRODUDUCTVERSION) +).*', '\\1'+version_string, line)
line = re.sub('( +VALUE "(FileVersion|ProductVersion)", +).*', '\\1'+version_string_spaces, line)
rc_boinc_gui.write(line)
print "Updated boinc_gui.rc to version %d.%02d" %(MAJOR_VERSION, MINOR_VERSION)
fn_boinc_ss_rc_old = 'boinc_ss.rc.old'
fn_boinc_ss_rc = 'boinc_ss.rc'
os.rename(fn_boinc_ss_rc, fn_boinc_ss_rc_old)
rc_boinc_ss_old = open(fn_boinc_ss_rc_old)
rc_boinc_ss = open(fn_boinc_ss_rc, 'w')
for line in rc_boinc_ss_old:
line = re.sub('( +(FILEVERSION|PRODUDUCTVERSION) +).*', '\\1'+version_string, line)
line = re.sub('( +VALUE "(FileVersion|ProductVersion)", +).*', '\\1'+version_string_spaces, line)
rc_boinc_ss.write(line)
print "Updated boinc_ss.rc to version %d.%02d" %(MAJOR_VERSION, MINOR_VERSION)

View File

@ -29,4 +29,7 @@ fi
cmd ./_autosetup -c
cmd cd client
cmd make win/win_config.h
cmd make win/resource.rc
cmd make win/boinc_cli.rc
cmd make win/boinc_dll.rc
cmd make win/boinc_gui.rc
cmd make win/boinc_ss.rc