File: version.sh

package info (click to toggle)
libraw 0.16.0-9%2Bdeb8u3
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 8,096 kB
  • ctags: 4,565
  • sloc: cpp: 23,318; sh: 11,432; ansic: 10,526; makefile: 90; perl: 9
file content (16 lines) | stat: -rwxr-xr-x 434 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

vfile=./libraw/libraw_version.h

major=`grep LIBRAW_MAJOR_VERSION $vfile |head -1 | awk '{print $3}'`
minor=`grep LIBRAW_MINOR_VERSION $vfile | head -1 | awk '{print $3}'`
patch=`grep LIBRAW_PATCH_VERSION $vfile | head -1 | awk '{print $3}'`
tail=`grep LIBRAW_VERSION_TAIL $vfile | head -1 | awk '{print $3}'`

if [ x$tail = xRelease ] ; then
 echo -n "$major.$minor.$patch"
else
 echo -n "$major.$minor.$patch-$tail"
fi