File: version

package info (click to toggle)
rplay 3.3.2-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,208 kB
  • ctags: 3,536
  • sloc: ansic: 42,124; makefile: 1,309; perl: 742; tcl: 345; sh: 301; java: 220
file content (19 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

if [ "$srcdir" = "" ]
then
    srcdir="."
fi

VERSION=`awk ' \
   BEGIN { major = ""; minor = ""; patchlevel = ""; status = ""; } \
   /RPLAY_MAJOR_VERSION/ { major = $3 } \
   /RPLAY_MINOR_VERSION/ { minor = $3 } \
   /RPLAY_PATCHLEVEL/ { patchlevel = $3 } \
   /RPLAY_STATUS/ { status = $3 } \
   END { printf("%s.%s.%s%s", major, minor, patchlevel, status) } \
' $srcdir/include/version.h`
VERSION=`echo $VERSION | sed 's/"//g'`

echo $VERSION