#!/bin/sh
# to be run from the Oxxx directory
TOP=..
cfg=$TOP/config
f=paricfg.h
rm -f $f.old
cp $f $f.old
. $cfg/get_head
. $cfg/version # need $TOP
v="GP/PARI CALCULATOR Version ${version}.${patch} (${status})"
sed -e "s,define PARIVERSION.*,define PARIVERSION \"$v\"," $f.old > $f
