mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
9b2202c13f
* 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).
38 lines
627 B
Bash
38 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
|