File: shlib-version.sh

package info (click to toggle)
libraw 0.19.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,396 kB
  • sloc: cpp: 39,147; ansic: 23,363; perl: 145; makefile: 87; sh: 77
file content (11 lines) | stat: -rwxr-xr-x 301 bytes parent folder | download | duplicates (3)
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}'