Mercurial > hg > mxe
changeset 2597:31a737274b4d
patch tool: check preconditions for export
author | Ryan Pavlik <rpavlik@iastate.edu> |
---|---|
date | Mon, 07 May 2012 12:55:41 -0500 |
parents | f3bf37ef00a3 |
children | bd76c971f875 |
files | tools/patch-tool-mxe |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/patch-tool-mxe +++ b/tools/patch-tool-mxe @@ -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.'