#!/bin/sh # $Id$ # change boinc version number in configure.ac die() { echo "$@" >&2 exit 1 } cmd() { "$@" || die "couldn't $*" } [ "$1" ] || die "syntax: set-version 1.42" echo "Setting boinc version to $1." cmd mv configure.ac configure.ac.old cmd sed "s/^AC_INIT.*/AC_INIT(BOINC, $1)/" configure.ac.old > configure.ac cmd ./_autosetup -c cmd cd client cmd make win/win_config.h