mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-09 15:39:08 +00:00
14 lines
541 B
Bash
14 lines
541 B
Bash
|
#!/bin/sh
|
||
|
FILE=../include/btstack/version.h
|
||
|
REVISION=`svnversion | sed "s/\([0-9]*\).*/\1/"`
|
||
|
MAJOR=0
|
||
|
MINOR=1
|
||
|
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
|