Cleanup "autogen/" if we have successful build

This way, we only leave around autogenerated files if the build fails (which is reasonable IMO, since that's when you'd need them for debugging the build failure).

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Upstream-commit: 44adbf23b5476ce26f807f956a21f27f07311a10
Component: engine
This commit is contained in:
Tianon Gravi
2015-02-23 14:12:44 -07:00
parent 1c2ec47a40
commit 3aaa63fb85
+3
View File
@@ -265,6 +265,9 @@ main() {
bundle $SCRIPTDIR/make/$bundle
echo
done
# if we get all the way through successfully, let's delete our autogenerated code!
rm -r autogen
}
main "$@"