README 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Create Nokia Widget
  2. (c) 2010 by Samuel Kobelkowsky - yalla ya!
  3. samuel@yalla-ya.com
  4. This code allows you to easily create a Nokia WRT Widget using SVN repository. The idea is to allow a group
  5. of users to commit changes to a widget and have a widget created instantly. If the widget is visible in a
  6. webserver directory, you can point your phone web browser (or better, create a bookmark in the home screen)
  7. and download the widget any time a new version is created.
  8. This simplifies enourmously the process of testing a widget.
  9. How to use:
  10. 1. Copy the local-svn-update and create-nokia-widget2 to the /usr/local/bin directory and give execution
  11. permissions to both.
  12. 2. Create a SVN repository for your widget (using svnadmin tool). A directory will be created, containing the
  13. following subdirectories and files: conf, dav, db, format, hooks, locks and README.txt
  14. 3. Go to the hooks directory and create the post-commit file. (Don't get confused with post-commit.tmpl. It
  15. is just a template, we don't want the .tmpl extension). It should have the following contents.
  16. Replace WWWREPOS, WIDGET and MAILTO as you need:
  17. #!/bin/bash
  18. PATH=/bin:/usr/bin
  19. # Path in the host where the local copy in the SVN server is
  20. WWWREPOS=/path/to/your/local/copy
  21. # Filename, including path, of the wgz file
  22. WIDGET=/filename/of/the/widget.wgz
  23. # Email to send a report of this transaction. Can contain several address,
  24. # comma separated
  25. MAILTO=yourname@example.com
  26. /usr/local/bin/local-svn-update $1 $2 $WWWREPOS $MAILTO
  27. /usr/local/bin/create-nokia-widget2 $WWWREPOS $WIDGET
  28. 4. Give execution permissions to the post-commit file.
  29. 5. Now, whenever you commit a change to your code, a widget will be created!