| 1234567891011121314151617181920212223242526 | #!/bin/bashINCLUDES=$2BIN=tmpif [ "$1" = "bt6703" ];thenSRC=$'#define HARDWARE_BT6703 1\r\n#include <stdio.h>\r\n#include "common_config.h"\r\n'elif [ "$1" = "bt6707" ];thenSRC=$'#define HARDWARE_BT6707 1\r\n#include <stdio.h>\r\n#include "common_config.h"\r\n'elif [ "$1" = "bt6709" ];thenSRC=$'#define HARDWARE_BT6709 1\r\n#include <stdio.h>\r\n#include "common_config.h"\r\n'elif [ "$1" = "bt6710" ];thenSRC=$'#define HARDWARE_BT6710 1\r\n#include <stdio.h>\r\n#include "common_config.h"\r\n'fiSRC+=$'int main(int argc, char *argv[]) {printf("%s", VERSION);}'echo "$SRC" > $BIN.cgcc -w $INCLUDES $BIN.c -o $BIN && chmod +x $BIN && VERSION=$(./$BIN)rm $BIN $BIN.cecho $VERSION
 |