Skip to content

Commit

Permalink
Merge pull request lloyd#157 from setempler/bugfix-configure
Browse files Browse the repository at this point in the history
Fixed configure script to accept "-h" and "--prefix".
  • Loading branch information
lloyd committed Sep 24, 2015
2 parents 12ee82a + a30c6f7 commit 5e3a785
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

prefix="/usr/local"
if [ "$1" = "--help" ]
then
cat <<EOS
Usage: configure [options]
usage="Usage: configure [options]
-p, --prefix PATH Set installation prefix
-h, --help Output usage summary
EOS
-h, --help Output usage summary"
if [ "$1" = "-h" ] || [ "$1" = "--help" ]
then
echo "$usage"
exit 0
fi
if [ "$1" = "-p" ]; then
if [ "$1" = "-p" ] || [ "$1" = "--prefix" ]
then
if [ "$#" != 2 ]; then
./configure.sh --help
echo "$usage"
exit 1
fi
prefix="$2"
Expand Down

0 comments on commit 5e3a785

Please sign in to comment.