File: shlib-version.sh

package info (click to toggle)
libraw 0.22.0-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,648 kB
  • sloc: cpp: 55,742; ansic: 2,812; makefile: 135; sh: 78; perl: 58
file content (11 lines) | stat: -rwxr-xr-x 301 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

vfile=./libraw/libraw_version.h

major=`grep LIBRAW_SHLIB_CURRENT $vfile |head -1 | awk '{print $3}'`
minor=`grep LIBRAW_SHLIB_REVISION $vfile | head -1 | awk '{print $3}'`
patch=`grep LIBRAW_SHLIB_AGE $vfile | head -1 | awk '{print $3}'`

echo "$major:$minor:$patch" | awk '{printf $1}'