-
Notifications
You must be signed in to change notification settings - Fork 20
Development
Brad White edited this page Jan 12, 2016
·
13 revisions
Tincr is released under the GPL version 2 license.
Please feel free to contribute to Tincr.
- An excellent tutorial on Tcl 8.5
- Eclipse has a Tcl plugin - it can be found in their Dynamic Languages Toolkit
- Tincr adheres to the test-driven development (TDD) software development process - it comes with a framework for executing unit tests
- A great resource for using Eclipse with Git
- Create an account at GitHub.com
- Download and install Eclipse
- Install the Dynamic Languages Toolkit Tcl plugin for Eclipse
- In Eclipse, navigate to "Help" -> "Install new software..."
- In the dropdown labeled "Work with:", select "Mars - http://download.eclipse.org/releases/mars"
- Expand "Programming Languages" and check the box next to "Dynamic Languages Toolkit - TCL Development Tools"
- Proceed through the rest of the installer, restart when prompted
- Clone the Tincr repo from GitHub
- In Eclipse, navigate to "File" -> "Import..."
- In the dialog that comes up, expand the folder "Git", select "Projects from Git", and press "Next"
- Select "Clone URI" and press "Next"
- Paste the following into the "URI" textbox: "https://github.com/bradselw/tincr.git"
- Enter your GitHub credentials if you wish and press "Next"
- Select the branches you want to clone and press "Next"
- Enter the directory where you want to clone the repo (i.e. "C:\code\git\tincr") and press "Next"
- Select "Import using the New Project Wizard" and press "Finish"
- Create a Tcl project for Tincr
- In the "New Project" dialog, expand "Tcl" and select "Tcl Project", and press "Next"
- Name your project (i.e. "tincr")
- Select "Create project at existing location" and browse to the path to the repo you cloned in the previous step (i.e. "C:\code\git\tincr") and press "Next"
- Remove everything from the build path except the "tincr" and "tincr_test" top-level folders
- Press "Finish"
- Install Tincr
- Create an environment variable named TINCR_PATH and set it to the root of the local Tincr repo (i.e. "C:\code\git\tincr")
- Copy "pkgIndex.tcl" from the "install" directory in the repo to the following directory in your Vivado installation: "\tps\tcl\tcl8.5"
Whenever features are added or bugs are fixed, these should be submitted via a pull request. Below outlines how to fix a bug in master using Eclipse:
- Make sure there is an issue filed for the work you will be doing. In this example, we will be fixing issue #1
- Create a "topic branch"
- Change to the branch that you would like to submit the fix to. In this case, I switched to "master"
- Create a new branch from the current branch
1. Right-click on the root node in Script Explorer
1. Team -> Switch To -> New Branch...
1. Give the branch a name and check "Configure upstream for push and pull"
1. Click "Finish"
- Make your changes
- Commit your changes and push to remote
- Right-click on the root node in Script Explorer
- Team -> Commit...
- Fill out the form: First line should be a short description, the rest should be a longer description
- Click "Commit and Push" to commit your changes to your local branch and push to the remote server
- Click "Ok" on the summary page
- The
tincr::refresh_packages
command will reload all Tincr packages. This is useful when testing changes you've made to Tincr without needing to restart Vivado