Created
September 16, 2011 02:36
-
-
Save fcamel/1221046 to your computer and use it in GitHub Desktop.
Good code snippet to run or die in shell script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(autoconf --version) < /dev/null > /dev/null 2>&1 || { | |
echo | |
echo "You must have autoconf installed to compile $PROJECT." | |
echo "Install the appropriate package for your distribution," | |
echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/" | |
DIE=1 | |
} | |
autoconf || exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment