Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Move .ino file into separate directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rnestler committed May 15, 2020
1 parent ee66831 commit c9cb10f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sample-projects/sfm3019-arduino/copy_sfm3019_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit c9cb10f

Please sign in to comment.