#! /bin/sh prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix_set=no bindir=@bindir@ sbindir=@sbindir@ libexecdir=@libexecdir@ datadir=@datadir@ sysconfdir=@sysconfdir@ sharedstatedir=@sharedstatedir@ localstatedir=@localstatedir@ libdir=@libdir@ infodir=@infodir@ mandir=@mandir@ includedir=@includedir@ gimpplugindir=@gimpplugindir@ gimpdatadir=@gimpdatadir@ usage() { cat <&2 exit 1 fi else echo "${noarg}" 1>&2 exit 1 fi ;; *) shift if test "x$1" != "x"; then if test -r "$1"; then cmd="$install_cmd $1 $install_dir/$1" 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 ;; esac ;; --build | --install | --install-admin | --build-strip | --install-strip \ | --install-admin-strip | --build-nogimpui | --install-nogimpui \ | --install-admin-nogimpui | --build-nogimpui-strip \ | --install-nogimpui-strip | --install-admin-nogimpui-strip \ | --build-noui | --install-noui | --install-admin-noui \ | --build-noui-strip | --install-noui-strip | --install-admin-noui-strip) opt=`echo $1 | sed 's/-strip$//'` if test "x$opt" != "x$1" ; then cflags=`echo $cflags | sed -e 's/-g //g' -e 's/ -g//g'` fi case $opt in --build | --build-noui | --build-nogimpui) install_dir=. ;; --install | --install-noui | --install-nogimpui) install_dir="$HOME/@gimpdir@/plug-ins" ;; --install-admin | --install-admin-noui | --install-admin-nogimpui) install_dir="$gimpplugindir/plug-ins" ;; esac noui=`echo $opt | sed 's/^.*\(noui\)$/\1/'` nogimpui=`echo $opt | sed 's/^.*\(nogimpui\)$/\1/'` if test "$noui" = "noui" ; then gimp_cflags=`$0 --cflags-noui` gimp_libs=`$0 --libs-noui` elif test "$nogimpui" = "nogimpui" ; then gimp_cflags=`$0 --cflags-nogimpui` gimp_libs=`$0 --libs-nogimpui` else gimp_cflags=`$0 --cflags` gimp_libs=`$0 --libs` fi shift if test "x$1" != "x"; then if test -r "$1"; then dest=`echo $1 | sed -e 's#.*/\([^/].*\)$#\1#' -e 's/\.[^.]*$//'` cmd="$cc $cflags $gimp_cflags -o $install_dir/$dest $1 $ldflags $gimp_libs $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