The following is a patch to allow the use of the DESTDIR environment variable when installing/uninstalling plugins. $DESTDIR is prefixed to the installation path, so that things may be installed into a 'staging directory', for packaging or testing purposes. A patch to the manpage is also included. The necessitates putting 'export DESTDIR' in the Makefile so that it is passed to gimptool in the environment. Regards, Roger *** gimptool.in Tue Jan 30 22:54:39 2001 --- ../gimp-orig/gimptool.in Mon Jan 29 19:05:41 2001 *************** *** 263,269 **** shift if test "x$1" != "x"; then if test -f "$install_dir/$1"; then ! cmd="rm -f $DESTDIR$install_dir/$1" test $quiet = "yes" || echo $cmd test $donothing = "yes" || exec $cmd else --- 263,269 ---- shift if test "x$1" != "x"; then if test -f "$install_dir/$1"; then ! cmd="rm -f $install_dir/$1" test $quiet = "yes" || echo $cmd test $donothing = "yes" || exec $cmd else *************** *** 279,285 **** shift if test "x$1" != "x"; then if test -r "$1"; then ! cmd="$install_cmd $1 $DESTDIR$install_dir/$1" test $quiet = "yes" || echo $cmd test $donothing = "yes" || exec $cmd else --- 279,285 ---- 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 *** gimptool.1.in Tue Jan 30 22:56:36 2001 --- ../gimp-orig/gimptool.1.in Fri Jan 26 22:01:29 2001 *************** *** 193,201 **** .B CFLAGS to get the preferred flags to pass to the C compiler for plug-in building. .TP 8 - .B DESTDIR - to add a prefix to the install/uninstall path. - .TP 8 .B LDFLAGS to get the prefered flags for passing to the linker. .TP 8 --- 193,198 ---- -- Roger Leigh ** Registration Number: 151826, http://counter.li.org ** Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/ For GPG Public Key: finger rl117@xxxxxxxxxxxxxxxx or see public keyservers.