"Fossies" - the Fresh Open Source Software Archive

Member "pari-2.13.1/config/version" (16 Jan 2021, 1159 Bytes) of package /linux/misc/pari-2.13.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "version": 2.13.0_vs_2.13.1.

    1 # Major version number
    2 VersionMajor='2'
    3 
    4 # minor version number
    5 VersionMinor='13'
    6 
    7 # Patch level
    8 patch='1'
    9 
   10 # Version code
   11 version_code=`expr $VersionMajor \\* 65536 + $VersionMinor \\* 256 + $patch`
   12 
   13 # Status: alpha, beta, released, development. Rewritten by config/settar !
   14 stat='released'
   15 
   16 # soname of stable libpari.so is libpari.so.$soname_num
   17 status="$stat"
   18 patchlevel_verbose=
   19 
   20 case "$stat" in # $stat rewritten by config/settar ?
   21   *git-*) patchlevel_verbose="[ $stat ]";;
   22   *) if test -d "$TOP/.git"; then
   23        t=`git rev-list HEAD 2>/dev/null | wc -l` # ~ svn revision number
   24        t=`echo $t | sed -e 's/ //g'` # some broken wc prepend spaces
   25        T=`git log -1 --pretty=format:%h` # commit hash
   26        if test -z "$t"; then t=0; fi
   27        vcsversion=$t-$T
   28        status="$stat $vcsversion"
   29        patchlevel_verbose="[ $status ]"
   30      fi
   31 esac
   32 version=$VersionMajor.$VersionMinor
   33 pari_release="$version.$patch"
   34 if test `expr $VersionMinor % 2` = 1; then
   35   pari_release_verbose="$pari_release (STABLE)"
   36   soname_num=`expr '(' $VersionMinor '+' 1 ')' / 2`
   37 else
   38   pari_release_verbose="$pari_release (DEVELOPMENT VERSION)"
   39   soname_num=$patch
   40 fi