#!/bin/sh prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix_set=no plug_in_dir=@gimpplugindir@ data_dir=@gimpdatadir@ usage() { cat <&2 exit 1 fi else echo "${noarg}" 1>&2 exit 1 fi ;; --build | --install | --install-admin \ | --build-noui | --install-noui | --install-admin-noui) case $1 in --build | --build-noui) install_dir=. ;; --install | --install-noui) install_dir="$HOME/@gimpdir@/plug-ins" ;; --install-admin | --install-admin-noui) install_dir="$plug_in_dir/plug-ins" ;; esac noui=`echo $1 | sed 's/^.*\(noui\)$/\1/'` if test "$noui" = "noui" ; then gimp_cflags=`$0 --cflags-noui` gimp_libs=`$0 --libs-noui` else gimp_cflags=`$0 --cflags` gimp_libs=`$0 --libs` fi shift if test "x$1" != "x"; then if test -r "$1"; then cmd="$cc $cflags $gimp_cflags -o $install_dir/`echo $1 | sed 's/\.[^\.]*$//'` $1 $gimp_libs" test $quiet = "yes" || echo $cmd test $donothing = "yes" || exec $cmd else echo "${notfound}" 1>&2 exit 1 fi else echo "${noarg}" 1>&2 exit 1 fi ;; *) usage 1 ;; esac shift done