patchinstall.sh: Use abort on error instead of calling exit directly, mention epatch backend in help.

This commit is contained in:
Sebastian Lackner 2015-01-12 13:17:03 +01:00
parent 7d9c7855c2
commit a6b41279d8
2 changed files with 4 additions and 4 deletions

View File

@ -38,6 +38,7 @@ usage()
echo ""
echo "Backends:"
echo " --backend=patch Use regular 'patch' utility to apply patches (default)"
echo " --backend=epatch Use 'epatch' to apply patches (Gentoo only)"
echo " --backend=git-am Use 'git am' to apply patches"
echo " --backend=git-apply Use 'git apply' to apply patches"
echo ""
@ -210,8 +211,7 @@ fi
if test "$enable_autoupdate" -eq 1; then
patchlist=$(mktemp)
if test ! -f "$patchlist"; then
echo "ERROR: Unable to create temporary file for patchlist." >&2
exit 1
abort "Unable to create temporary file for patchlist."
fi
fi

View File

@ -38,6 +38,7 @@ usage()
echo ""
echo "Backends:"
echo " --backend=patch Use regular 'patch' utility to apply patches (default)"
echo " --backend=epatch Use 'epatch' to apply patches (Gentoo only)"
echo " --backend=git-am Use 'git am' to apply patches"
echo " --backend=git-apply Use 'git apply' to apply patches"
echo ""
@ -853,8 +854,7 @@ fi
if test "$enable_autoupdate" -eq 1; then
patchlist=$(mktemp)
if test ! -f "$patchlist"; then
echo "ERROR: Unable to create temporary file for patchlist." >&2
exit 1
abort "Unable to create temporary file for patchlist."
fi
fi