fill in documentation

translatable strings
and mode of operation
This commit is contained in:
Jaromil 2016-06-08 16:49:06 +02:00
parent 044eb279e1
commit 3017288424
2 changed files with 44 additions and 5 deletions

View File

@ -1,6 +1,28 @@
libdevuansdk
------------
## Strings for translation
To support gettext translation use Zuper's functions for noticing messages to console:
- `notice` (green visible header)
- `act` (bullet point information)
- `warning` (orange warning, non fatal)
- `error` (fatal error) followed by `zerr` and `zshexit`
Each string should not contain any variable, but pointers to
variables, then be followed by actual variables as arguments. So for
instance:
```
notice "Starting to bake files in ::1 directory:: for target ::2 arch::" $dir $arch
```
This will print the string with variables in it, but string will
contain references to them. This is so that gettext translations will
point to the same string even in case of name of variables changing.
## Code style
### Leading whitespace
@ -38,3 +60,13 @@ libdevuansdk is split into three stages. See `doc/WORKFLOW.md` for more info on
### Stage 3
* packing
## Submodule administration
To update all submodules use:
```
git submodule foreach git pull --rebase origin master
```
This will cycle through all submodules and update them to the respective latest HEAD. After this the repository needs to be updated with the reference to this new HEAD with a commit.

View File

@ -4,18 +4,25 @@ libdevuansdk functions
# zlibs/debootstrap
## bootstrap()
Stages 1, 2, and 3 of debootstrap.
## config_cleanup()
Main function, goes through stages 1, 2, and 3 of debootstrap.
Other internal functions are prefixed with `config_` and `tar_`
### config_cleanup() ###
Final cleanup of the rootfs.
## config_thirdstage()
### config_thirdstage() ###
Shell script for the system's third debootstrap stage.
## tar_bootstrap()
### tar_bootstrap() ###
Make a tarball of a base working system, ready to be worked on later.
## tar_unpack()
### tar_unpack() ###
Unpack the tarball of a base working system to the strapdir.
# zlibs/helpers