summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven E. Templer <sven.templer@gmail.com>2015-04-05 00:01:04 +0200
committerSven E. Templer <sven.templer@gmail.com>2015-04-05 00:01:04 +0200
commita30c6f7e8c780ab38d70732b830dd1fa8563c352 (patch)
treed93f9cb6106c54a2cece11b2f68778e897be62d7
parente41f93768e36dd189f7b16a8c5b5c7abd356aa1c (diff)
downloadyajl-a30c6f7e8c780ab38d70732b830dd1fa8563c352.tar.gz
echo usage instead of relaunching configure script when PATH is missing
-rwxr-xr-xconfigure11
1 files changed, 5 insertions, 6 deletions
diff --git a/configure b/configure
index 311d18d..d308c12 100755
--- a/configure
+++ b/configure
@@ -15,19 +15,18 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
prefix="/usr/local"
+usage="Usage: configure [options]
+ -p, --prefix PATH Set installation prefix
+ -h, --help Output usage summary"
if [ "$1" = "-h" ] || [ "$1" = "--help" ]
then
- cat <<EOS
-Usage: configure [options]
- -p, --prefix PATH Set installation prefix
- -h, --help Output usage summary
-EOS
+ echo "$usage"
exit 0
fi
if [ "$1" = "-p" ] || [ "$1" = "--prefix" ]
then
if [ "$#" != 2 ]; then
- ./configure.sh --help
+ echo "$usage"
exit 1
fi
prefix="$2"