File: shlib-version.sh

package info (click to toggle)
libraw 0.21.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,496 kB
  • sloc: cpp: 53,067; ansic: 2,430; makefile: 133; sh: 82; perl: 58
file content (11 lines) | stat: -rwxr-xr-x 301 bytes parent folder | download | duplicates (8)
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}'