[xfce-utils] Add missing patch
Christoph Wickert
cwickert at fedoraproject.org
Sun Jan 9 01:30:34 UTC 2011
commit be2c5202e8675c807242d13b7cd16d855aa73194
Author: Christoph Wickert <cwickert at fedoraproject.org>
Date: Sun Jan 9 02:30:18 2011 +0100
Add missing patch
xfce-utils-4.4.3-xfterm4-bug.patch | 44 ++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/xfce-utils-4.4.3-xfterm4-bug.patch b/xfce-utils-4.4.3-xfterm4-bug.patch
new file mode 100644
index 0000000..23de5b3
--- /dev/null
+++ b/xfce-utils-4.4.3-xfterm4-bug.patch
@@ -0,0 +1,44 @@
+--- a/scripts/xfterm4 2007-11-25 17:45:31.000000000 +0000
++++ b/scripts/xfterm4 2007-11-25 17:45:41.000000000 +0000
+@@ -1,24 +1,15 @@
+ #!/bin/sh
+
+ if [ "$1" = "-e" ]; then
+- if [ -n "$2" ]; then
+- shift
+- ESTRING="$@"
+- else
+- shift
+- fi
++ shift
+ fi
+
+ if [ -d "$*" ]; then
+ cd "$*"
+-elif [ -x "$*" ]; then
+- cd `dirname "$*"`
+- ESTRING="`which pauseme`"
+- MSTRING="$*"
+-elif [ -f "$*" ]; then
++elif [ -f "$*" -a ! -x "$*" ]; then
+ ESTRING="`which less`"
+ MSTRING="$*"
+-elif [ "`echo $* | grep "http:/"`" -o "`echo $* | grep "ftp:"`" ]; then
++elif [ "`echo $* | grep "http:/"`" -o "`echo $* | grep "ftp:"`" -a ! -x "$*" ]; then
+ # This requires lynx or links. If you don't have it, don't drop URLs.
+ if which lynx >/dev/null 2>&1; then
+ ESTRING="`which lynx`"
+@@ -26,6 +17,13 @@
+ ESTRING="`which links`"
+ fi
+ MSTRING="$*"
++else
++ if which pauseme >/dev/null 2>&1; then
++ ESTRING="`which pauseme`"
++ MSTRING="$*"
++ else
++ ESTRING="$@"
++ fi
+ fi
+
+ if [ x"$ESTRING" = x"" ]; then
More information about the scm-commits
mailing list