nautilus/nautilus-config.in
Maciej Stachowiak 9b2202c13f reviewed by: Ian McKellar <ian@eazel.com>
* Makefile.am, configure.in, nautilus-config.in, nautilus.spec.in,
	nautilusConf.sh.in, .cvsignore: Add nautilus-config and
	nautilusConf.sh so other modules can sensibly depend on
	libnautilus (this fix should make it into 1.0.2, I guess I should
	file a bug at some point).
2001-03-21 05:15:42 +00:00

39 lines
627 B
Bash

#!/bin/sh
usage="\
Usage: nauilus-config [--version] [--config] [--cflags] [--libs]"
config_file="@LIBDIR@/nautilusConf.sh"
. $config_file
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--version)
echo @VERSION@
;;
--config)
echo $config_file
;;
--cflags)
echo $NAUTILUS_INCLUDEDIR
;;
--libs)
echo "$NAUTILUS_LIBDIR $NAUTILUS_LIBS"
;;
*)
echo "${usage}" 1>&2
exit 1
esac
shift
done