| 1 | #!/bin/sh |
| 2 | |
| 3 | if [ "$srcdir" = "" ] |
| 4 | then |
| 5 | srcdir="." |
| 6 | fi |
| 7 | |
| 8 | VERSION=`awk ' \ |
| 9 | BEGIN { major = ""; minor = ""; patchlevel = ""; status = ""; } \ |
| 10 | /RPLAY_MAJOR_VERSION/ { major = $3 } \ |
| 11 | /RPLAY_MINOR_VERSION/ { minor = $3 } \ |
| 12 | /RPLAY_PATCHLEVEL/ { patchlevel = $3 } \ |
| 13 | /RPLAY_STATUS/ { status = $3 } \ |
| 14 | END { printf("%s.%s.%s%s", major, minor, patchlevel, status) } \ |
| 15 | ' $srcdir/include/version.h` |
| 16 | VERSION=`echo $VERSION | sed 's/"//g'` |
| 17 | |
| 18 | echo $VERSION |
| 19 |