#!/bin/sh
# Wrapper to redirect build output of an individual <package>.SMBuild to a log file

# Disable colours in the build summary. It looks nice in the terminal but not so good inside the actual build log.
SM_COLOURS=0
export SM_COLOURS

while [ $# -gt 0 ]; do
  exec "$1" 2>&1 | tee -a "$1".buildlog
  break
done
