stx-docker.sh
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 14 Jan 2020 22:47:55 +0000
branchjv
changeset 1625 2425cb5d073e
parent 1385 d61b4842760c
permissions -rwxr-xr-x
Add support out-of-tree builds. This commit adds a support for out-of-tree builds, i.e, object files, executables and so on are writen to `$(OUTDIR)` (which defaults to `build/<BUILD_TARGET>` directory. This allows building Smalltalk/X from single source tree for multiple targets.

#!/bin/bash
set -e

test -f .Xauthority.org && xauth -f .Xauthority.org list | sed -e '/unix/!d' -e "s+.*/unix:+add $(hostname)/unix:+" | xauth 2>/dev/null -
test -z "$1" && exec stx/projects/smalltalk/stx
exec "$@"