Skip to content
Snippets Groups Projects
Commit 10dd889a authored by Leah Rowe's avatar Leah Rowe
Browse files

maintain/style: notes about work directory


Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
parent a5757741
Branches
Tags
No related merge requests found
......@@ -82,6 +82,8 @@ attention to how the functions are formatted, e.g. where `{` and `}` go:
```
#!/usr/bin/env sh
. "include/err.sh"
main()
{
foo
......@@ -119,6 +121,16 @@ complicated_function()
main $@
```
PWD is always root of lbmk
--------------------------
In any script executed by lbmk, under `script/`, the work directory is relative
to the main `lbmk` script. In other words, all scripts under `script/` also
assume this.
This is actually one of the reasons for that design, as also alluded to in
the main [lbmk maintenance manual](index.md).
main should only be a simple skeleton
-------------------------------------
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment