diff options
author | Ryan Pavlik <rpavlik@iastate.edu> | 2012-05-07 17:55:41 (GMT) |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2012-06-13 16:22:32 (GMT) |
commit | cf1d99d68da6806a07bd5abc78174918603c0e60 (patch) | |
tree | 33e2bfb2ee8fb3976e17971b36a9f2c43ac636f5 | |
parent | cd9cfc088b7b585400aa740dca95e7f85e21cdba (diff) | |
download | mxe-cf1d99d68da6806a07bd5abc78174918603c0e60.zip mxe-cf1d99d68da6806a07bd5abc78174918603c0e60.tar.gz mxe-cf1d99d68da6806a07bd5abc78174918603c0e60.tar.bz2 |
patch tool: check preconditions for export
-rwxr-xr-x | tools/patch-tool-mxe | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe index 5c9a86d..b9d08f1 100755 --- a/tools/patch-tool-mxe +++ b/tools/patch-tool-mxe @@ -73,6 +73,11 @@ function init_git { 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.' |