Activities/Turtle Art/Patching: Difference between revisions
m moved Walter is a wanker 7/Turtle Art/Patching to Activities/Turtle Art/Patching over redirect: revert |
|||
| (10 intermediate revisions by 7 users not shown) | |||
| Line 8: | Line 8: | ||
<div class="visualClear"></div> | <div class="visualClear"></div> | ||
There has been a discussion on the OLPC-sur list about the need for a square root function in Turtle Art. Below, I have documented the process I used for adding this functionality with the hope that others may feel comfortable in emulating me in regard to making changes and enhancements to Sugar and Sugar Activities and sharing those enhancements with the community. | There has been a discussion on the OLPC-sur list about the need for a square root function in Turtle Art. Below, I have documented the process I used for adding this functionality with the hope that others may feel comfortable in emulating me in regard to making changes and enhancements to Sugar and Sugar Activities and sharing those enhancements with the community. Beginners may find [[Activity_Team/Modifing_an_Activity]] useful. | ||
You can download the unofficial [http://wiki.laptop.org/images/9/9e/Turtleart-11.xo Turtleart-11.xo here]. The .xo archive can be opened by relabeling it(for example) to a .zip file. | You can download the unofficial [http://wiki.laptop.org/images/9/9e/Turtleart-11.xo Turtleart-11.xo here]. | ||
'''Windows users notes''' | |||
The .xo archive can be opened by relabeling it(for example) to a .zip file. | |||
Within the archive you find the files to be edited, Python source files talogo.py and tasetup.py and the images directory images/en/numbers . Python source files can be edited with [http://www.python.org/ Python]. | Within the archive you find the files to be edited, Python source files talogo.py and tasetup.py and the images directory images/en/numbers . Python source files can be edited with [http://www.python.org/ Python]. | ||
| Line 63: | Line 66: | ||
defprim(lc,'sqrt', 1, lambda lc,x: sqrt(x)) | defprim(lc,'sqrt', 1, lambda lc,x: sqrt(x)) | ||
==More steps== | ==More steps== | ||
* Brian asked me to take over as the maintainer of the Python version of Turtle Art, so I needed to "commit" and "push" my patch: | * Brian asked me to take over as the maintainer of the Python version of Turtle Art, so I needed to "add" my new files, then "commit" and "push" my patch: | ||
git-add images/*/numbers/sqrt.gif | |||
git-commit -a | git-commit -a | ||
Created commit fa7a12f: new file: images/en/numbers/sqrt.gif | Created commit fa7a12f: new file: images/en/numbers/sqrt.gif | ||
| Line 85: | Line 90: | ||
Total 29 (delta 20), reused 0 (delta 0) | Total 29 (delta 20), reused 0 (delta 0) | ||
refs/heads/master: 18f37394242044f5104de7f40249caed440cdfa2 -> 1536a4ce43096395e5572ee61dbc87c88daa72ad | refs/heads/master: 18f37394242044f5104de7f40249caed440cdfa2 -> 1536a4ce43096395e5572ee61dbc87c88daa72ad | ||
To ssh://dev.laptop.org/git/projects/turtleart-activity | To ssh://dev.laptop.org/git/projects/turtleart-activity/ | ||
18f3739..1536a4c master -> master | 18f3739..1536a4c master -> master | ||
| Line 91: | Line 96: | ||
python setup.py dist_source | python setup.py dist_source | ||
scp dist/TurtleArt-11.tar.bz2 walter@dev.laptop.org:/var/www/sugar/sources/ | scp dist/TurtleArt-11.tar.bz2 walter@dev.laptop.org:/var/www/sugar/sources/turtleart-activity/ | ||
Further instructions on the Sugar release process are found here: [[ | Further instructions on the Sugar release process are found here: [[Development Team/Release#New_modules_proposal]]. The instructions on the [[Development Team/Code Review]] page are also helpful. | ||
==The patch== | ==The patch== | ||