# HG changeset patch # User Ryan Pavlik # Date 1336413341 18000 # Node ID 31a737274b4d4b7ebc43295fce1aabb249139bd5 # Parent f3bf37ef00a37f7d1cbe975ad520a8cae8530466 patch tool: check preconditions for export diff -r f3bf37ef00a3 -r 31a737274b4d tools/patch-tool-mxe --- a/tools/patch-tool-mxe Mon May 07 12:55:30 2012 -0500 +++ b/tools/patch-tool-mxe Mon May 07 12:55:41 2012 -0500 @@ -73,6 +73,11 @@ function export_patch { setupEnv + if [ ! -d $gitsdir/$pkg_subdir ]; then + echo "Error: $gitsdir/$pkg_subdir does not exist, so cannot export patches. Cancelling export." >&2 + exit 1 + fi + cd $gitsdir/$pkg_subdir && \ ( echo 'This file is part of MXE.'