- 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 -largs $LIBS"
+ ;;
+ x--help)
+ cat <<ENDHELP
+Usage: ${THIS}-config [options]
+
+Options:
+ --cflags echos the gnat (Ada compiler) flags needed to compile with ${THIS}
+ --libs echos the gnat libraries needed to link with ${THIS}
+
+ --version echos the release+patchdate version of ${THIS}
+
+ --help prints this message
+
+If no options are given, echos the full set of flags needed by gnatmake.
+ENDHELP
+ ;;
+ *)
+ echo 'Usage: adacurses@DFT_ARG_SUFFIX@-config [--version | --cflags | --libs]' >&2
+ exit 1
+ ;;