LineageOS Build script
I've written a bash-script that should make the process of building your own LineageOS very easy for every. The script is host
The script is written for Ubuntu and tested under Ubuntu 16.04.3. See the GitHub page for details about how to use it.
Currently in use with the (not yet) outdated LineageOS 14.1.