2010-01-09 10:19:43 +00:00
|
|
|
#!/bin/sh
|
|
|
|
FILE=../include/btstack/version.h
|
|
|
|
REVISION=`svnversion | sed "s/\([0-9]*\).*/\1/"`
|
|
|
|
MAJOR=0
|
2014-06-07 07:08:29 +00:00
|
|
|
MINOR=8
|
2010-01-09 10:19:43 +00:00
|
|
|
DATE=`date "+%Y-%m-%d_%H:%M:%S"`
|
|
|
|
printf "// BTstack - version.h\n" > $FILE
|
|
|
|
printf "// - generated by %s\n" $0>> $FILE
|
|
|
|
printf "// - at %s\n" $DATE >> $FILE
|
|
|
|
printf "#define BTSTACK_MAJOR %u\n" $MAJOR >> $FILE
|
|
|
|
printf "#define BTSTACK_MINOR %u\n" $MINOR >> $FILE
|
|
|
|
printf "#define BTSTACK_REVISION %u\n" $REVISION >> $FILE
|
|
|
|
printf "#define BTSTACK_VERSION \"%u.%u-%u\"\n" $MAJOR $MINOR $REVISION >> $FILE
|
2014-06-07 07:08:29 +00:00
|
|
|
printf "#define BTSTACK_DATE \"%s\"" $DATE >> $FILE
|