File: version

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 (40 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Major version number
VersionMajor='2'

# minor version number
VersionMinor='17'

# Patch level
patch='3'

# Version code
version_code=`expr $VersionMajor \\* 65536 + $VersionMinor \\* 256 + $patch`

# Status: alpha, beta, released, development. Rewritten by config/settar !
stat='released'

# soname of stable libpari.so is libpari.so.$soname_num
status="$stat"
patchlevel_verbose=

case "$stat" in # $stat rewritten by config/settar ?
  *git-*) patchlevel_verbose="[ $stat ]";;
  *) if test -d "$TOP/.git" || test -f "$TOP/.git"; then
       t=`git rev-list HEAD 2>/dev/null | wc -l` # ~ svn revision number
       t=`echo $t | sed -e 's/ //g'` # some broken wc prepend spaces
       T=`git log -1 --pretty=format:%h` # commit hash
       if test -z "$t"; then t=0; fi
       vcsversion=$t-$T
       status="$stat $vcsversion"
       patchlevel_verbose="[ $status ]"
     fi
esac
version=$VersionMajor.$VersionMinor
pari_release="$version.$patch"
if test `expr $VersionMinor % 2` = 1; then
  pari_release_verbose="$pari_release (STABLE)"
  soname_num=`expr '(' $VersionMinor '+' 1 ')' / 2`
else
  pari_release_verbose="$pari_release (DEVELOPMENT VERSION)"
  soname_num=$patch
fi