mirror of
git://slackware.nl/current.git
synced 2024-12-29 10:25:00 +01:00
4f9273afa4
a/kernel-firmware-20200122_1eb2408-noarch-1.txz: Upgraded. a/pciutils-3.6.3-x86_64-1.txz: Upgraded. a/pkgtools-15.0-noarch-30.txz: Rebuilt. removepkg: prevent upgradepkg noise when a directory turns into a symlink. setup.vi-ex: don't make symlinks if the targets don't exist. d/cmake-3.16.3-x86_64-1.txz: Upgraded. d/distcc-3.3.3-x86_64-3.txz: Rebuilt. Move symlink tree into /usr/lib/distcc/, and make a link in /usr/lib64/ if needed. Seems like this is how everyone else sets it up. Thanks to hpfeil. Recompiled against krb5-1.17.1 (--with-auth). d/parallel-20200122-noarch-1.txz: Upgraded. l/python-urllib3-1.25.8-x86_64-1.txz: Upgraded. n/bind-9.14.10-x86_64-1.txz: Upgraded. This is a bugfix release: With some libmaxminddb versions, named could erroneously match an IP address not belonging to any subnet defined in a given GeoIP2 database to one of the existing entries in that database. [GL #1552] Fix line spacing in `rndc secroots`. Thanks to Tony Finch. [GL #2478] Recompiled against krb5-1.17.1 (--with-gssapi). n/dhcp-4.4.2-x86_64-1.txz: Upgraded. n/p11-kit-0.23.19-x86_64-1.txz: Upgraded. n/php-7.4.2-x86_64-2.txz: Rebuilt. Patched for c-client library API change. Thanks to ecd102. Recompiled against krb5-1.17.1 (--with-kerberos).
50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
#!/bin/sh
|
|
#BLURB="Configure the ex/vi symlinks."
|
|
T_PX=$1
|
|
TMP=/var/log/setup/tmp
|
|
rm -f $TMP/exvitype
|
|
dialog --title "CHOOSE DEFAULT EX/VI EDITOR" --default-item "nvi" --menu \
|
|
"This part of the configuration \
|
|
process will create ex and vi symlinks in /usr/bin pointing to your default \
|
|
ex/vi editors. On a fresh installation, these will point to nvi by default, \
|
|
as it is lightweight and supports UTF8. You may choose a different default \
|
|
if you prefer, but please note that elvis does not support UTF8." 14 76 3 \
|
|
"elvis" "Slackware's traditional ex/vi, no UTF8 support" \
|
|
"nvi" "Classic BSD ex/vi, supports UTF8" \
|
|
"vim" "Vi IMproved - top rated ex/vi clone, supports UTF8" \
|
|
2> $TMP/exvitype
|
|
if [ ! $? = 0 ]; then
|
|
rm -f $TMP/exvitype
|
|
exit
|
|
fi
|
|
if [ -f $TMP/exvitype ]; then
|
|
DEFAULT_VI=$(cat $TMP/exvitype)
|
|
else
|
|
exit 0
|
|
fi
|
|
# Only make the symlinks if the targets actually exist.
|
|
if [ "$DEFAULT_VI" = "elvis" ]; then
|
|
( cd $T_PX/usr/bin
|
|
if [ -e elvis ]; then
|
|
rm -f ex vi
|
|
ln -sf elvis ex
|
|
ln -sf elvis vi
|
|
fi
|
|
)
|
|
elif [ "$DEFAULT_VI" = "nvi" ]; then
|
|
( cd $T_PX/usr/bin
|
|
if [ -e nex -a -e nvi ]; then
|
|
rm -f ex vi
|
|
ln -sf nex ex
|
|
ln -sf nvi vi
|
|
fi
|
|
)
|
|
elif [ "$DEFAULT_VI" = "vim" ]; then
|
|
( cd $T_PX/usr/bin
|
|
if [ -e vim ]; then
|
|
rm -f ex vi
|
|
ln -sf vim ex
|
|
ln -sf vim vi
|
|
fi
|
|
)
|
|
fi
|