From 91a3ca8da35eb84430310bc14e806ac4e30c65a8 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Tue, 29 Oct 2002 11:25:09 +0000 Subject: [PATCH] strip paths from the plug-in filename for installation (fixes #97111). 2002-10-29 Manish Singh * gimptool-1.3.in: strip paths from the plug-in filename for installation (fixes #97111). --- ChangeLog | 5 +++++ gimptool-1.3.in | 8 +++++--- gimptool-2.0.in | 8 +++++--- 3 files changed, 15 insertions(+), 6 deletions(-) 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