#! /bin/sh
-# $Id: adacurses-config.in,v 1.14 2020/02/02 23:34:34 tom Exp $
+# $Id: adacurses-config.in,v 1.15 2022/07/16 21:16:43 tom Exp $
##############################################################################
-# Copyright 2019,2020 Thomas E. Dickey #
+# Copyright 2019-2020,2022 Thomas E. Dickey #
# Copyright 2007-2014,2016 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
LIBS="-L$ADA_OBJECTS -l@ADA_LIBNAME@"
THIS="@ADA_LIBNAME@"
-THIS_CFG="$THIS@DFT_ARG_SUFFIX@-config"
+THIS_CFG="${THIS}@DFT_ARG_SUFFIX@-config"
case "x$1" in
x--version)
echo @ADA_LIBNAME@ $VERSION
;;
x--cflags)
- echo $CFLAGS
+ echo "$CFLAGS"
;;
x--libs)
- echo $LIBS
+ echo "$LIBS"
;;
x)
# if no parameter is given, give what gnatmake needs
ENDHELP
;;
*)
- echo 'Usage: $THIS_CFG [--version | --cflags | --libs]' >&2
+ echo "Usage: ${THIS_CFG} [--version | --cflags | --libs]" >&2
exit 1
;;
esac