Browse Source

Update install for new structure

pull/15/head
Fernando Trias 4 years ago
parent
commit
0d379f8df8
  1. 6
      README.md
  2. 12
      extras/Makefile
  3. 0
      extras/install-linux.sh
  4. 0
      extras/install-mac.command
  5. 15
      extras/teensy_debug

6
README.md

@ -78,17 +78,17 @@ You can also do these things by hand and not use installer app for your platform
Installing on Mac
-------------------------------------------
This tool requires Python, which is installed by default on Macs. Install by running `install-mac.command` located in the disribution directory. This script creates a new menu option in Arduino and copies itself to the tools directory. Then it will create a local library with the source files.
This tool requires Python, which is installed by default on Macs. Install by running `install-mac.command` located in the `extras` directory. This script creates a new menu option in Arduino and copies itself to the tools directory. Then it will create a local library with the source files.
Installing on Windows
-------------------------------------------
This tool is installed by running `teensy_debug.exe` as Administrator. Do this by right-clicking on the file and selecting `Run as administraor`. This program creates a new menu option in Arduino and copies itself to the tools directory. Then it will create a local library with the source files.
This tool is installed by running `teensy_debug.exe` in `extras` as Administrator. Do this by right-clicking on the file and selecting `Run as administraor`. This program creates a new menu option in Arduino and copies itself to the tools directory. Then it will create a local library with the source files.
Installing on Linux
-------------------------------------------
Run `install-linux.sh` to install. It assumes your Arduino is installed in `~/arduino`. If this is not so, pass the direction with the `-i=path` option. It will create a local library with the source files.
Run `install-linux.sh` in `extras` to install. It assumes your Arduino is installed in `~/arduino`. If this is not so, pass the direction with the `-i=path` option. It will create a local library with the source files.
Installing from ZIP file
-------------------------------------------

12
extras/Makefile

@ -1,9 +1,9 @@
DIST=license.txt TeensyDebug.h TeensyDebug.cpp gdbstub.cpp examples library.properties keywords.txt README.md teensy_debug.exe teensy_debug.py install-linux.sh install-mac.command install-windows.bat
DIST=license.txt library.properties keywords.txt README.md src examples extras
all: TeensyDebug.zip
all: ../TeensyDebug.zip
TeensyDebug.zip: $(DIST)
zip -r TeensyDebug.zip $(DIST)
../TeensyDebug.zip: $(DIST)
cd ..; zip -r TeensyDebug.zip $(DIST)
teensy_debug.exe:
build.bat
extras/teensy_debug.exe:
cd extras; build.bat

0
extras/install-linux.sh

0
extras/install-mac.command

15
extras/teensy_debug

@ -186,16 +186,17 @@ def installGDB():
if not os.path.exists(DEST):
os.makedirs(DEST)
for i in ("README.md", "library.properties", "keywords.txt", "license.txt", "TeensyDebug.h", "TeensyDebug.cpp", "gdbstub.cpp"):
for i in ("../README.md", "../library.properties", "../keywords.txt", "../license.txt"):
print("Copy %s to %s" % (i, DEST))
shutil.copy(i, DEST)
print("Copy examples to %s" % (DEST))
try:
shutil.rmtree(DEST + '/examples')
except:
pass
shutil.copytree('examples', DEST + '/examples')
for dir in ("src", "examples"):
print("Copy %s to %s" % (dir, DEST))
try:
shutil.rmtree(DEST + '/' + dir)
except:
pass
shutil.copytree('../' + dir, DEST + '/' + dir)
print("\nInstallation complete\n")

Loading…
Cancel
Save