File: version

package info (click to toggle)
firedns 0.9.12-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,192 kB
  • ctags: 322
  • sloc: ansic: 4,026; sh: 964; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#require cflags
#phase config
dispn "Reading firemake.version..."
VERSION=`cat firemake.version 2>/dev/null`
if test "$?" = "0"; then
	disp "done, \"$VERSION\""
else
	disp "not found, using \"0.0.0\""
	VERSION="0.0.0"
fi
dispn "Adding -DVERSION=\"\\\"$VERSION\\\"\" to CFLAGS..."
FM_CFLAGS="$FM_CFLAGS -DVERSION=\"\\\"$VERSION\\\"\""
disp done