stdout: add a simple stdout redirector

This commit is contained in:
Danny Robson 2019-10-31 16:10:37 +11:00
parent 1cfff20fa5
commit 67847a4c01
1 changed files with 12 additions and 0 deletions

12
stdout.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# A trivial script that takes an output file as the first argument, an
# executable as the second, and subsequent arguments. stdout is piped to the
# output file.
#
# This is used to workaround CMake's inflexible output options for custom
# targets.
dst=$1
shift 1
exec $@ > $dst