[quake3-commits] [ioquake/ioq3] 14cb72: Improvements to the linux build script

Matt Palmer mpalmer at hezmatt.org
Wed Nov 22 00:07:57 EST 2017


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: 14cb72f91219b760d21ee50a5a663ab3dcd28fdb
      https://github.com/ioquake/ioq3/commit/14cb72f91219b760d21ee50a5a663ab3dcd28fdb
  Author: Matt Palmer <mpalmer at hezmatt.org>
  Date:   2017-11-21 (Tue, 21 Nov 2017)

  Changed paths:
    M misc/linux/server_compile.sh

  Log Message:
  -----------
  Improvements to the linux build script

In no particular order:

* Use `set -e`, because it prevents accidents, and means we can avoid
  lengthy &&-joined command chains.
* Override defaults by setting env vars; this means people don't have to
  edit the script to change things.
* Use an unpredictable and safely-created tmpdir for building; ain't nobody
  wants to cleanup from a tmpdir race condition attack.
* Test for the presence of `git` and `make` *before* asking questions, and
  only prompt the user about them if they're missing.  No need to bother
  people with unnecessary reading.
* Automatically clean up the build directory after use.
* Tidy up some indenting that had come asunder.




More information about the quake3-commits mailing list