Beej's Guide to Network Programming source
This is the source for Beej's Guide to Network Programming.
If you merely wish to read the guide, please visit the Beej's Guide to Network Programming website.
This is here so that Beej has everything in a repo and so translators can easily clone it.
Mac dependencies install (reopen terminal after doing this):
xcode-select --install # installs make brew install python # installs Python3 brew install pandoc brew cask install mactex # installs XeLaTeX brew tap homebrew/cask-fonts brew cask install font-liberation-sans # installs sans, serif, and mono
makefrom the top-level directory.
If you have Gnu Make, it should work fine. Other makes might work as well. Windows users might want to check out Cygwin.
make stageto copy all the build products and website to the
There is no step three.
You can also
make cleancleans, and
make pristinecleans to "original" state.
To embed your own fonts in the PDFs, see the
uploadtarget in the root
Makefiledemonstrates the build steps for a complete release. You'll need to change the
UPLOADDIRmacro in the top-level
Makefileto point to your host if you want to use that. You're free to upload whatever versions you desire individually, as well.
If you don't want to mess with a local setup, you can build via Docker.
docker build -t beej-bgnet-builder .from the top-level directory.
docker run --rm -v "$PWD":/guide -ti beej-bgnet-builder.
This will mount the project where the image expects it, and run
make pristine all stage, leaving your
./stagedirectory ready to be published.
Please keep these on the scale of typo and bug fixes. That way I don't have to consider any copyright issues when merging changes.