File: version.def

package info (click to toggle)
grfcodec 6.0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,124 kB
  • sloc: cpp: 12,624; ansic: 748; makefile: 196; perl: 132; sh: 77
file content (11 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
# Current year
YEAR = 2013

ifdef REVISION
VERSIONSTR := r$(REVISION)
else
VERSIONS   := $(shell AWK="$(AWK)" "./findversion.sh")
REV        := $(shell echo "$(VERSIONS)" | cut -f 2 -d'	')
VER        := $(shell echo "$(VERSIONS)" | cut -f 1 -d'	')
VERSIONSTR := $(shell [ "`echo "$(VERSIONS)" | cut -c 1`" = 'r' ] && echo "trunk $(VER)" && exit; echo "$(VER) r$(REV)")
endif