]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - Ada95/gen/adacurses-config.in
ncurses 5.9 - patch 20120317
[ncurses.git] / Ada95 / gen / adacurses-config.in
index 7e33ec92043bce76bb18fd7f694ca33f52b551ce..ec0b6b68b6741417f707f6e7f21bdc9bc10d0784 100644 (file)
@@ -1,7 +1,7 @@
 #! /bin/sh
-# $Id: adacurses-config.in,v 1.5 2009/01/11 00:08:19 tom Exp $
+# $Id: adacurses-config.in,v 1.6 2010/03/06 21:05:01 tom Exp $
 ##############################################################################
-# Copyright (c) 2007,2009 Free Software Foundation, Inc.                     #
+# Copyright (c) 2007-2009,2010 Free Software Foundation, Inc.                #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
@@ -43,22 +43,37 @@ VERSION=@NCURSES_MAJOR@.@NCURSES_MINOR@.@NCURSES_PATCH@
 CFLAGS="-I$ADA_INCLUDE -aO$ADA_OBJECTS"
 LIBS="-L$ADA_OBJECTS -lAdaCurses"
 
+THIS="adacurses"
+
 case "x$1" in
-    x--version)
-        echo AdaCurses $VERSION
-        ;;
-    x--cflags)
-        echo $CFLAGS
-        ;;
-    x--libs)
-        echo $LIBS
-        ;;
-    x)
-       # if no parameter is given, give what gnatmake needs
-        echo "$CFLAGS -i -largs $LIBS"
-        ;;
-    *)
-        echo 'Usage: adacurses@DFT_ARG_SUFFIX@-config [--version | --cflags | --libs]' >&2
-        exit 1
-        ;;
+       x--version)
+               echo AdaCurses $VERSION
+               ;;
+       x--cflags)
+               echo $CFLAGS
+               ;;
+       x--libs)
+               echo $LIBS
+               ;;
+       x)
+               # if no parameter is given, give what gnatmake needs
+               echo "$CFLAGS -i -largs $LIBS"
+               ;;
+       x--help)
+               cat <<ENDHELP
+Usage: ${THIS}-config [options]
+
+Options:
+  --cflags           echos the C compiler flags needed to compile with ${THIS}
+  --libs             echos the libraries needed to link with ${THIS}
+
+  --version          echos the release+patchdate version of ${THIS}
+
+  --help             prints this message
+ENDHELP
+               ;;
+       *)
+               echo 'Usage: adacurses@DFT_ARG_SUFFIX@-config [--version | --cflags | --libs]' >&2
+               exit 1
+               ;;
 esac