File: version.sh

package info (click to toggle)
ola 0.9.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,340 kB
  • ctags: 23,021
  • sloc: cpp: 129,922; python: 12,265; sh: 11,778; makefile: 2,288; ansic: 1,775; java: 518; xml: 214
file content (9 lines) | stat: -rwxr-xr-x 272 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/sh

VERSION_FILE="include/ola/base/Version.h"

major=`grep OLA_VERSION_MAJOR $VERSION_FILE | cut -d\  -f3`
minor=`grep OLA_VERSION_MINOR $VERSION_FILE | cut -d\  -f3`
revision=`grep OLA_VERSION_REVISION $VERSION_FILE | cut -d\  -f3`

echo "$major.$minor.$revision"