2014-07-09 10:43:10 +00:00
|
|
|
Development Basics
|
|
|
|
==================
|
|
|
|
|
|
|
|
Gluon's source is kept in `git repositories`_ at GitHub.
|
|
|
|
|
|
|
|
.. _git repositories: https://github.com/freifunk-gluon
|
|
|
|
|
|
|
|
Bug Tracker
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The `main repo`_ does have issues enabled.
|
|
|
|
|
|
|
|
.. _main repo: https://github.com/freifunk-gluon/gluon
|
|
|
|
|
|
|
|
IRC
|
|
|
|
---
|
|
|
|
|
|
|
|
Gluon's developers frequent `#gluon on hackint`_. You're welcome to join us!
|
|
|
|
|
|
|
|
.. _#gluon on hackint: irc://irc.hackint.org/#gluon
|
|
|
|
|
|
|
|
|
|
|
|
Working with repositories
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
To update the repositories used by Gluon, just adjust the commit IDs in `modules` and
|
|
|
|
rerun
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
make update
|
|
|
|
|
|
|
|
`make update` also applies the patches that can be found in the directories found in
|
|
|
|
`patches`; the resulting branch will be called `patched`, while the commit specified in `modules`
|
|
|
|
can be refered to by the branch `base`.
|
|
|
|
|
2016-11-19 16:34:19 +00:00
|
|
|
After new patches have been commited on top of the `patched` branch (or existing commits
|
2014-07-09 10:43:10 +00:00
|
|
|
since the base commit have been edited or removed), the patch directories can be regenerated
|
|
|
|
using
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
make update-patches
|
|
|
|
|
|
|
|
If applying a patch fails because you have changed the base commit, the repository will be reset to the old `patched` branch
|
|
|
|
and you can try rebasing it onto the new `base` branch yourself and after that call `make update-patches` to fix the problem.
|
|
|
|
|
|
|
|
Always call `make update-patches` after making changes to a module repository as `make update` will overwrite your
|
|
|
|
commits, making `git reflog` the only way to recover them!
|
2016-11-29 19:45:25 +00:00
|
|
|
|
|
|
|
Development Guidelines
|
|
|
|
----------------------
|
|
|
|
lua should be used instead of sh whenever sensible. The following criteria
|
|
|
|
should be considered:
|
|
|
|
|
|
|
|
- Is the script doing more than just executing external commands? if so, use lua
|
|
|
|
- Is the script parsing/editing json-data? If so, use lua for speed
|
|
|
|
|