scripts mc.sh, mc.csh, mc-wrapper.csh and mc-wrapper.sh now install into %{libexec}/mc directory

This commit is contained in:
Slava Zanko 2009-05-22 12:19:16 +03:00
parent 8841747560
commit 289959792e
3 changed files with 6 additions and 7 deletions

View File

@ -2,8 +2,6 @@
SUBDIRS = dist SUBDIRS = dist
suppbindir = $(pkgdatadir)/bin
if CHARSET if CHARSET
LIBFILES_ADD = mc.charsets LIBFILES_ADD = mc.charsets
else else
@ -15,7 +13,8 @@ noinst_DATA = README.xterm mcserv.init mcserv.pamd
SCRIPTS_IN = mc.csh.in mc.sh.in mc-wrapper.csh.in mc-wrapper.sh.in SCRIPTS_IN = mc.csh.in mc.sh.in mc-wrapper.csh.in mc-wrapper.sh.in
SCRIPTS_OUT = mc.csh mc.sh mc-wrapper.csh mc-wrapper.sh SCRIPTS_OUT = mc.csh mc.sh mc-wrapper.csh mc-wrapper.sh
suppbin_SCRIPTS = $(SCRIPTS_OUT) pkglibexec_SCRIPTS = $(SCRIPTS_OUT)
pkglibexecdir = $(libexecdir)/@PACKAGE@
cfgdir = $(sysconfdir)/@PACKAGE@ cfgdir = $(sysconfdir)/@PACKAGE@
cfg_DATA = \ cfg_DATA = \
@ -30,10 +29,10 @@ EXTRA_DIST = \
$(cfg_DATA) $(cfg_DATA)
mc.csh: $(srcdir)/mc.csh.in mc.csh: $(srcdir)/mc.csh.in
sed "s%@""suppbindir@%$(suppbindir)%" $(srcdir)/mc.csh.in > mc.csh sed "s%@""pkglibexecdir@%$(pkglibexecdir)%" $(srcdir)/mc.csh.in > mc.csh
mc.sh: $(srcdir)/mc.sh.in mc.sh: $(srcdir)/mc.sh.in
sed "s%@""suppbindir@%$(suppbindir)%" $(srcdir)/mc.sh.in > mc.sh sed "s%@""pkglibexecdir@%$(pkglibexecdir)%" $(srcdir)/mc.sh.in > mc.sh
mc-wrapper.csh: $(srcdir)/mc-wrapper.csh.in mc-wrapper.csh: $(srcdir)/mc-wrapper.csh.in
sed "s%@""bindir@%$(bindir)%" $(srcdir)/mc-wrapper.csh.in > mc-wrapper.csh sed "s%@""bindir@%$(bindir)%" $(srcdir)/mc-wrapper.csh.in > mc-wrapper.csh

View File

@ -1 +1 @@
alias mc 'source @suppbindir@/mc-wrapper.csh' alias mc 'source @pkglibexecdir@/mc-wrapper.csh'

View File

@ -1,3 +1,3 @@
# Don't define aliases in plain Bourne shell # Don't define aliases in plain Bourne shell
[ -n "${BASH_VERSION}${KSH_VERSION}${ZSH_VERSION}" ] || return 0 [ -n "${BASH_VERSION}${KSH_VERSION}${ZSH_VERSION}" ] || return 0
alias mc='. @suppbindir@/mc-wrapper.sh' alias mc='. @pkglibexecdir@/mc-wrapper.sh'