summaryrefslogtreecommitdiff
path: root/src/installml.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/installml.sh')
-rw-r--r--src/installml.sh46
1 files changed, 27 insertions, 19 deletions
diff --git a/src/installml.sh b/src/installml.sh
index 8cb926453..0de60adf7 100644
--- a/src/installml.sh
+++ b/src/installml.sh
@@ -30,40 +30,48 @@ evimname=$6
exname=$7
viewname=$8
rvimname=$9
-rviewname=${10}
-gvimname=${11}
-gviewname=${12}
-rgvimname=${13}
-rgviewname=${14}
-gvimdiffname=${15}
-eviewname=${16}
-
-if test $what = "install" -a \( -e $destdir/$vimname.1 -o -e $destdir/$vimdiffname.1 -o -e $destdir/$eviewname.1 \); then
+# old shells don't understand ${10}
+shift
+rviewname=$9
+shift
+gvimname=$9
+shift
+gviewname=$9
+shift
+rgvimname=$9
+shift
+rgviewname=$9
+shift
+gvimdiffname=$9
+shift
+eviewname=$9
+
+if test $what = "install" -a \( -f $destdir/$vimname.1 -o -f $destdir/$vimdiffname.1 -o -f $destdir/$eviewname.1 \); then
if test ! -d $destdir; then
echo creating $destdir
./mkinstalldirs $destdir
fi
# ex
- if test ! -e $destdir/$exname.1 -a -e $destdir/$vimname.1; then
+ if test ! -f $destdir/$exname.1 -a -f $destdir/$vimname.1; then
echo creating link $destdir/$exname.1
cd $destdir; ln -s $vimname.1 $exname.1
fi
# view
- if test ! -e $destdir/$viewname.1 -a -e $destdir/$vimname.1; then
+ if test ! -f $destdir/$viewname.1 -a -f $destdir/$vimname.1; then
echo creating link $destdir/$viewname.1
cd $destdir; ln -s $vimname.1 $viewname.1
fi
# rvim
- if test ! -e $destdir/$rvimname.1 -a -e $destdir/$vimname.1; then
+ if test ! -f $destdir/$rvimname.1 -a -f $destdir/$vimname.1; then
echo creating link $destdir/$rvimname.1
cd $destdir; ln -s $vimname.1 $rvimname.1
fi
# rview
- if test ! -e $destdir/$rviewname.1 -a -e $destdir/$vimname.1; then
+ if test ! -f $destdir/$rviewname.1 -a -f $destdir/$vimname.1; then
echo creating link $destdir/$rviewname.1
cd $destdir; ln -s $vimname.1 $rviewname.1
fi
@@ -71,37 +79,37 @@ if test $what = "install" -a \( -e $destdir/$vimname.1 -o -e $destdir/$vimdiffna
# GUI targets are optional
if test "$gui" = "yes"; then
# gvim
- if test ! -e $destdir/$gvimname.1 -a -e $destdir/$vimname.1; then
+ if test ! -f $destdir/$gvimname.1 -a -f $destdir/$vimname.1; then
echo creating link $destdir/$gvimname.1
cd $destdir; ln -s $vimname.1 $gvimname.1
fi
# gview
- if test ! -e $destdir/$gviewname.1 -a -e $destdir/$vimname.1; then
+ if test ! -f $destdir/$gviewname.1 -a -f $destdir/$vimname.1; then
echo creating link $destdir/$gviewname.1
cd $destdir; ln -s $vimname.1 $gviewname.1
fi
# rgvim
- if test ! -e $destdir/$rgvimname.1 -a -e $destdir/$vimname.1; then
+ if test ! -f $destdir/$rgvimname.1 -a -f $destdir/$vimname.1; then
echo creating link $destdir/$rgvimname.1
cd $destdir; ln -s $vimname.1 $rgvimname.1
fi
# rgview
- if test ! -e $destdir/$rgviewname.1 -a -e $destdir/$vimname.1; then
+ if test ! -f $destdir/$rgviewname.1 -a -f $destdir/$vimname.1; then
echo creating link $destdir/$rgviewname.1
cd $destdir; ln -s $vimname.1 $rgviewname.1
fi
# gvimdiff
- if test ! -e $destdir/$gvimdiffname.1 -a -e $destdir/$vimdiffname.1; then
+ if test ! -f $destdir/$gvimdiffname.1 -a -f $destdir/$vimdiffname.1; then
echo creating link $destdir/$gvimdiffname.1
cd $destdir; ln -s $vimdiffname.1 $gvimdiffname.1
fi
# eview
- if test ! -e $destdir/$eviewname.1 -a -e $destdir/$evimname.1; then
+ if test ! -f $destdir/$eviewname.1 -a -f $destdir/$evimname.1; then
echo creating link $destdir/$eviewname.1
cd $destdir; ln -s $evimname.1 $eviewname.1
fi