File: make_buildnum.sh

package info (click to toggle)
memtest86+ 5.01-3
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 1,336 kB
  • ctags: 2,585
  • sloc: ansic: 17,514; asm: 1,805; makefile: 239; sh: 127
file content (20 lines) | stat: -rwxr-xr-x 823 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!sh  
# FILE: make_buildnum.sh  
version="`sed  's/^ *//' major_version`"  
old="`sed  's/^ *//' build.number` +1"  
echo $old | bc > build.number.temp  
mv build.number.temp build.number  
#versi´┐Żn..  
echo "$version`sed  's/^ *//' build.number` - `date`" > version.number  
#header  
echo "#ifndef BUILD_NUMBER_STR" > build_number.h  
echo "#define BUILD_NUMBER_STR \"`sed  's/^ *//' build.number`\"" >> build_number.h  
echo "#endif" >> build_number.h  
  
echo "#ifndef VERSION_STR" >> build_number.h  
echo "#define VERSION_STR \"$version`sed  's/^ *//' build.number` - `date`\"" >> build_number.h  
echo "#endif" >> build_number.h  
  
echo "#ifndef VERSION_STR_SHORT" >> build_number.h  
echo "#define VERSION_STR_SHORT \"$version`sed  's/^ *//' build.number`\"" >> build_number.h  
echo "#endif" >> build_number.h