diff --git a/ChangeLog b/ChangeLog index 84c816d794..97773e73e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-29 Manish Singh + + * gimptool-1.3.in: strip paths from the plug-in filename for + installation (fixes #97111). + 2002-10-29 Sven Neumann * app/tools/Makefile.am diff --git a/gimptool-1.3.in b/gimptool-1.3.in index 4a668bdd0a..25e8c6edf3 100644 --- a/gimptool-1.3.in +++ b/gimptool-1.3.in @@ -243,8 +243,9 @@ while test $# -gt 0; do --uninstall-* ) shift if test "x$1" != "x"; then - if test -f "$install_dir/$1"; then - cmd="rm -f $DESTDIR$install_dir/$1" + dest=`echo $1 | sed -e 's#.*/\([^/].*\)$#\1#'` + if test -f "$DESTDIR$install_dir/$dest"; then + cmd="rm -f $DESTDIR$install_dir/$dest" test $quiet = "yes" || echo $cmd test $donothing = "yes" || exec $cmd else @@ -260,7 +261,8 @@ while test $# -gt 0; do shift if test "x$1" != "x"; then if test -r "$1"; then - cmd="$install_cmd $1 $DESTDIR$install_dir/$1" + dest=`echo $1 | sed -e 's#.*/\([^/].*\)$#\1#'` + cmd="$install_cmd $1 $DESTDIR$install_dir/$dest" test $quiet = "yes" || echo $cmd test $donothing = "yes" || exec $cmd else diff --git a/gimptool-2.0.in b/gimptool-2.0.in index 4a668bdd0a..25e8c6edf3 100644 --- a/gimptool-2.0.in +++ b/gimptool-2.0.in @@ -243,8 +243,9 @@ while test $# -gt 0; do --uninstall-* ) shift if test "x$1" != "x"; then - if test -f "$install_dir/$1"; then - cmd="rm -f $DESTDIR$install_dir/$1" + dest=`echo $1 | sed -e 's#.*/\([^/].*\)$#\1#'` + if test -f "$DESTDIR$install_dir/$dest"; then + cmd="rm -f $DESTDIR$install_dir/$dest" test $quiet = "yes" || echo $cmd test $donothing = "yes" || exec $cmd else @@ -260,7 +261,8 @@ while test $# -gt 0; do shift if test "x$1" != "x"; then if test -r "$1"; then - cmd="$install_cmd $1 $DESTDIR$install_dir/$1" + dest=`echo $1 | sed -e 's#.*/\([^/].*\)$#\1#'` + cmd="$install_cmd $1 $DESTDIR$install_dir/$dest" test $quiet = "yes" || echo $cmd test $donothing = "yes" || exec $cmd else