2003-07-24 20:53:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
2003-09-05 22:12:34 +00:00
|
|
|
# Change boinc version number in configure.ac and generate files.
|
|
|
|
|
|
|
|
# syntax: set-version 7.17
|
2003-07-24 20:53:53 +00:00
|
|
|
|
|
|
|
die()
|
|
|
|
{
|
|
|
|
echo "$@" >&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
cmd()
|
|
|
|
{
|
|
|
|
"$@" || die "couldn't $*"
|
|
|
|
}
|
|
|
|
|
2003-08-19 21:49:42 +00:00
|
|
|
if [ "$1" ]; then
|
|
|
|
echo "Setting BOINC version to $1."
|
2003-07-24 20:53:53 +00:00
|
|
|
|
2003-08-19 21:49:42 +00:00
|
|
|
cmd mv configure.ac configure.ac.old
|
|
|
|
cmd sed "s/^AC_INIT.*/AC_INIT(BOINC, $1)/" configure.ac.old > configure.ac
|
|
|
|
else
|
|
|
|
echo "Updating files for BOINC version (assuming you manually changed configure.ac)"
|
|
|
|
fi
|
2003-07-24 20:53:53 +00:00
|
|
|
|
|
|
|
cmd ./_autosetup -c
|
|
|
|
cmd cd client
|
|
|
|
cmd make win/win_config.h
|
2003-11-03 04:41:13 +00:00
|
|
|
cmd make win/resource.rc
|