I'm not sure if this will be helpful, but if your running Windows vista or better, you can use the mklink command to make symbolic links to the correct directories instead of copying all the files and folders.
on my setup I created the following directory tree:
"C:\teensyclipse\hardware\teensy\all\"
I then created a symlink to the "cores" folder on my Arduino 1.0.x directory tree using the folllowing command:
Code:
mklink /d "C:\teensyclipse\hardware\teensy\all\cores" "C:\Program Files (x86)\Arduino\hardware\teensy\cores"
I then created the following directory tree:
"C:\teensyclipse\hardware\teensy\tools\"
and used the following command:
Code:
mklink /d "C:\teensyclipse\hardware\teensy\tools\windows" "C:\Program Files (x86)\Arduino\hardware\tools"
I then placed the
boards.txt and
platform.txt (found in this thread) in the "c:\teensyclipse\hardware\teensy\all" folder.
I followed the rest of the instructions found in this thread and am now a happy Eclipse user.
All without having to make copies of all those files and folders..
I would think you could do about the same on linux using symlinks also.
as a side note:
this could probably be turned into a bat file without to much effort.
something like this:
(this is completely untested, use at your own risk..)
create a file named "createTeensyClipse.bat" and place the following code in it:
Code:
@echo off
if not "X"=="X%~3" goto DOCMD
echo Usage:
echo createTeensyClipse "My_new_hardware_folder_path" "path_to_teensy_cores_folder" "path_to_arduino(1.5.x)_tools_folder"
echo Where:
echo "My_new_hardware_folder_path" = the path to the new hardware folder (i.e. "C:\hardware")
echo "path_to_teensy_cores_folder" = the path to the teensy installed cores directory (i.e. "C:\Arduino\teensy\cores")
echo "path_to_arduino(1.5.x)_tools_folder" = the path to your version 1.5.x installs tools folder (i.e. "C:\Arduino-1.5.5\hardware\tools")
echo
goto BAT_DONE
:DOCMD
Set ($TEENSY_ALL_DIR)="%~1\teensy\all"
Set ($TEENSY_CORES_DIR)="%~1\teensy\tools\"
mkdir %($TEENSY_ALL_DIR)%
mkdir %($TEENSY_CORES_DIR)%
mklink /d "%~($TEENSY_ALL_DIR)%\cores " "%~2"
mklink /d "%~($TEENSY_CORES_DIR)%\windows" "%~3"
echo folder tree is setup, now create the "boards.txt"
echo and "platform.txt" files and place them in the "%~($TEENSY_ALL_DIR)" folder.
:BAT_DONE
@echo on
Hope that looks right.
Enjoy,
g-