- Fix spec file

OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=10
This commit is contained in:
Philipp Thomas
2010-07-08 14:21:19 +00:00
committed by Git OBS Bridge
parent 2215855ca5
commit 667bda3add
42 changed files with 573 additions and 1674 deletions

View File

@@ -1,10 +1,14 @@
--- lib/mc.sh.in
+++ lib/mc.sh.in
@@ -1 +1,8 @@
-alias mc='. @suppbindir@/mc-wrapper.sh'
+mc ()
Index: contrib/mc.sh.in
===================================================================
--- contrib/mc.sh.in.orig 2010-07-05 21:12:51.000000000 +0200
+++ contrib/mc.sh.in 2010-07-06 19:10:33.155018811 +0200
@@ -1,3 +1,10 @@
# Don't define aliases in plain Bourne shell
[ -n "${BASH_VERSION}${KSH_VERSION}${ZSH_VERSION}" ] || return 0
-alias mc='. @pkglibexecdir@/mc-wrapper.sh'
+mc()
+{
+. @suppbindir@/mc-wrapper.sh
+. @datadir@/mc/mc-wrapper.sh'
+}
+if [ -n "$BASH_VERSION" ]
+then