From c9cb10fee8b1b243eed9fbbd7f0bf0a59bd4a5f2 Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Thu, 14 May 2020 18:21:33 +0200 Subject: [PATCH] Move .ino file into separate directory For some reasons the .ino file needs to reside in a folder with the same name as the .ino file. Otherwise the arduino IDE will complain when opening it. --- .../sfm3019-arduino/copy_sfm3019_driver.sh | 12 ++++++------ .../sfm3019-arduino/{ => sfm3019}/.gitignore | 0 .../{sfm3019-arduino.ino => sfm3019/sfm3019.ino} | 0 3 files changed, 6 insertions(+), 6 deletions(-) rename sample-projects/sfm3019-arduino/{ => sfm3019}/.gitignore (100%) rename sample-projects/sfm3019-arduino/{sfm3019-arduino.ino => sfm3019/sfm3019.ino} (100%) diff --git a/sample-projects/sfm3019-arduino/copy_sfm3019_driver.sh b/sample-projects/sfm3019-arduino/copy_sfm3019_driver.sh index 8093277..6dc61c7 100755 --- a/sample-projects/sfm3019-arduino/copy_sfm3019_driver.sh +++ b/sample-projects/sfm3019-arduino/copy_sfm3019_driver.sh @@ -4,13 +4,13 @@ set -euo pipefail BASE_DIR=$(dirname "$0") -mkdir -p "$BASE_DIR"/ -cp "$BASE_DIR/../../embedded-common/"*.[ch] "$BASE_DIR"/ -cp "$BASE_DIR/../../embedded-common/hw_i2c/sample-implementations/arduino/"*.cpp "$BASE_DIR"/ -cp "$BASE_DIR/../../sfm3019/sfm3019."[ch] "$BASE_DIR"/ -cp "$BASE_DIR/../../sfm-common/"*.[ch] "$BASE_DIR"/ +mkdir -p "$BASE_DIR"/sfm3019 +cp "$BASE_DIR/../../embedded-common/"*.[ch] "$BASE_DIR"/sfm3019 +cp "$BASE_DIR/../../embedded-common/hw_i2c/sample-implementations/arduino/"*.cpp "$BASE_DIR"/sfm3019 +cp "$BASE_DIR/../../sfm3019/sfm3019."[ch] "$BASE_DIR"/sfm3019 +cp "$BASE_DIR/../../sfm-common/"*.[ch] "$BASE_DIR"/sfm3019 gitversion=$(git describe --always --dirty) -cat << EOF > "$BASE_DIR/sfm_git_version.c" +cat << EOF > "$BASE_DIR/sfm3019/sfm_git_version.c" /* THIS FILE IS AUTOGENERATED */ #include "sfm_git_version.h" const char * SFM_DRV_VERSION_STR = "$gitversion"; diff --git a/sample-projects/sfm3019-arduino/.gitignore b/sample-projects/sfm3019-arduino/sfm3019/.gitignore similarity index 100% rename from sample-projects/sfm3019-arduino/.gitignore rename to sample-projects/sfm3019-arduino/sfm3019/.gitignore diff --git a/sample-projects/sfm3019-arduino/sfm3019-arduino.ino b/sample-projects/sfm3019-arduino/sfm3019/sfm3019.ino similarity index 100% rename from sample-projects/sfm3019-arduino/sfm3019-arduino.ino rename to sample-projects/sfm3019-arduino/sfm3019/sfm3019.ino