Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1574653
 поиск   регистрация   авторизация 
 
Группа :: Система/Интернационализация
Пакет: mova

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: mova-4.0-alt-config.patch


diff -Naur usr/local/bin/mova usr.ext/local/bin/mova
--- usr/local/bin/mova	Wed Dec  6 01:29:49 2000
+++ usr.ext/local/bin/mova	Sun Feb  4 21:52:23 2001
@@ -15,7 +15,7 @@
 esac
 
 #Default Directory for .movarc, if absent ~/.movarc
-MD=/usr/local/share/mova/
+MD=/etc
 
 XW () {
 sed 's/$/\
@@ -44,7 +44,7 @@
           &/g; s/_[^ ][^ ]*[.:]/\\fI&\\fP/g; s/_//g; s/╚/э/g; s/█/O/g; s/\( \[[^]]*\)х/\1`/g; s/\( \[[^]]*\)г/\1,/g; s/\( \[[^]]*\)х/\1`/g; s/\( \[[^]]*\)г/\1,/g' | fmt -s -w 46 |groff -Tlatin1 | less;}
 
 DEF () {
-test -f ${MD}.movarc && DIRD=`cat ${MD}.movarc | sed -n '6,6p'`share/dict/ && DEFD=`cat ${MD}.movarc | sed -n '8,8p'`
+test -f /etc/mova/Movarc && DIRD=`cat /etc/mova/Movarc | sed -n '6,6p'`share/dict/ && DEFD=`cat /etc/mova/Movarc | sed -n '8,8p'`
 test -f ~/.movarc && DIRD=`cat ~/.movarc | sed -n '6,6p'`share/dict/ && DEFD=`cat ~/.movarc | sed -n '8,8p'`
 if [ "$DIC" = "-d" ]; then DIC=$DIRD$DEFD; else DIC=$DIRD$DIC; fi;}
 
diff -Naur usr/local/bin/movaMTK usr.ext/local/bin/movaMTK
--- usr/local/bin/movaMTK	Sun Dec 24 19:58:08 2000
+++ usr.ext/local/bin/movaMTK	Sun Feb  4 21:52:49 2001
@@ -5,7 +5,7 @@
 exec wish "$0" "$@"
 
 #Default Directory for "share/mova/.movarc", if absent "~/.movarc"
-set DIR /usr/local/
+set DIR /usr/
 set OPT -W
 set DIARY .mova
 global u
@@ -29,9 +29,9 @@
 proc GetOptions {} {
 global DIR DIC DIR_TMP DIC_ARG FONT_FIND FONT_TEXT FONT_D FONT_DG FONT_IPA
 if {([catch {set rcfile [open "~/.movarc_${DIC_ARG}" "r"]} Error] &&
-[catch {set rcfile [open "${DIR}share/mova/.movarc_${DIC_ARG}" "r"]}  Error] &&
+[catch {set rcfile [open "/etc/mova/Movarc_${DIC_ARG}" "r"]}  Error] &&
 [catch {set rcfile [open "~/.movarc" "r"]} Error] &&
-[catch {set rcfile [open "${DIR}share/mova/.movarc" "r"]} Error]) != 0} {
+[catch {set rcfile [open "/etc/mova/Movarc" "r"]} Error]) != 0} {
 set FONT_FIND -*-*-bold-r-*-*-17-*-*-*-*-*-koi8-r
 set FONT_TEXT -*-*-medium-r-*-*-17-*-*-*-*-*-koi8-r
 set FONT_D -*-*-medium-o-*-*-17-*-*-*-*-*-koi8-r
diff -Naur usr/local/bin/movaTK usr.ext/local/bin/movaTK
--- usr/local/bin/movaTK	Sat Dec 23 02:58:07 2000
+++ usr.ext/local/bin/movaTK	Sun Feb  4 21:52:39 2001
@@ -5,7 +5,7 @@
 exec wish "$0" "$@"
 
 #Default Directory for "share/mova/.movarc", if absent "~/.movarc"
-set DIR /usr/local/
+set DIR /usr/
 set OPT -W
 set DIARY .mova
 
@@ -21,15 +21,15 @@
 proc GetOptions {} {
 global DIR DIC DIR_TMP DIC_ARG FONT_FIND FONT_TEXT FONT_D FONT_DG FONT_IPA
 if {([catch {set rcfile [open "~/.movarc_${DIC_ARG}" "r"]} Error] &&
-[catch {set rcfile [open "${DIR}share/mova/.movarc_${DIC_ARG}" "r"]}  Error] &&
+[catch {set rcfile [open "/etc/mova/Movarc_${DIC_ARG}" "r"]}  Error] &&
 [catch {set rcfile [open "~/.movarc" "r"]} Error] &&
-[catch {set rcfile [open "${DIR}share/mova/.movarc" "r"]} Error] ) != 0} {
+[catch {set rcfile [open "/etc/mova/Movarc" "r"]} Error] ) != 0} {
 set FONT_FIND -*-*-bold-r-*-*-17-*-*-*-*-*-koi8-r
 set FONT_TEXT -*-*-medium-r-*-*-17-*-*-*-*-*-koi8-r
 set FONT_D -*-*-medium-o-*-*-17-*-*-*-*-*-koi8-r
 set FONT_DG -*-*-bold-o-*-*-17-*-*-*-*-*-koi8-r
 set FONT_IPA -*-silsophiaipa-*-r-*-17-*-*-*-*-*-*-*
-set DIR /usr/local/
+set DIR /usr/
 set DIC Mueller7GPL.koi
 set DIR_TMP /tmp/
 } else {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005