aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: 277593e4962f6849b5db7c7e88f60b32e5d8a3b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu" ]]; then
  HARDWARE=~/Arduino/hardware
elif [[ "$OSTYPE" == "darwin"* ]]; then
  HARDWARE=~/Documents/Arduino/hardware  
else
  echo "OS not supported in install script, manually symlink or copy arcore to your Arduino IDE's hardware folder."
  exit
fi
TARGET=$HARDWARE/arcore
mkdir -p $HARDWARE
if [[ -d "$TARGET" ]]; then
  echo "Already installed at $TARGET"
else
  ln -s "$PWD" "$TARGET"
  echo "Installed at $TARGET"
fi