File: generate-buildcodes.sh

package info (click to toggle)
p3scan 2%3A2.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,568 kB
  • ctags: 2,371
  • sloc: ansic: 12,072; makefile: 253; sh: 234
file content (17 lines) | stat: -rwxr-xr-x 444 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

build_code=`date +%s`
build_date=`date`
build_box=`uname -a`
#build_cmd=`history !-1`
BCF='buildcodes.h'

printf "\n// Autogenerated buildcode file - this will change on every make\n" > $BCF
printf "#define BUILD_CODE \"$build_code\"\n" >> $BCF
printf "#define BUILD_DATE \"$build_date\"\n" >> $BCF
printf "#define BUILD_BOX \"$build_box\"\n" >> $BCF
#printf "#define BUILD_CMD \"$build_cmd\"\n" >> $BCF

printf "\n" >> $BCF

exit 0