root / autotools / run-in-tempdir @ 231db3a5
History | View | Annotate | Download (177 Bytes)
1 | b959138f | Michael Hanselmann | #!/bin/bash |
---|---|---|---|
2 | b959138f | Michael Hanselmann | |
3 | b959138f | Michael Hanselmann | set -e |
4 | b959138f | Michael Hanselmann | |
5 | b959138f | Michael Hanselmann | tmpdir=$(mktemp -d -t gntbuild.XXXXXXXX) |
6 | b959138f | Michael Hanselmann | trap "rm -rf $tmpdir" EXIT |
7 | b959138f | Michael Hanselmann | |
8 | b959138f | Michael Hanselmann | cp -r scripts lib tools test $tmpdir |
9 | b959138f | Michael Hanselmann | mv $tmpdir/lib $tmpdir/ganeti |
10 | b959138f | Michael Hanselmann | |
11 | b959138f | Michael Hanselmann | cd $tmpdir && "$@" |