File: setversion

package info (click to toggle)
pari 2.17.3-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 24,508 kB
  • sloc: ansic: 281,184; sh: 861; perl: 420; yacc: 214; makefile: 162; f90: 88
file content (14 lines) | stat: -rwxr-xr-x 478 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# to be run from the Oxxx directory. Called iff $TOP/.git/index exists
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\",;
        s,define PARI_VCSVERSION.*,define PARI_VCSVERSION \"${vcsversion}\",;
        s,define PARI_VERSION_CODE.*,define PARI_VERSION_CODE ${version_code}," $f.old > $f