Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 96001 | Differences between
and this patch

Collapse All | Expand All

(-)xi1.tcl (-5 / +6 lines)
Lines 20-25 Link Here
20
20
21
21
22
#----- installation proc's ----------------------------------------------------------------------------------------------
22
#----- installation proc's ----------------------------------------------------------------------------------------------
23
proc XiCopy {to from}  {XiProtokoll "\tcopying file  $from -> $to"; exec cp $to $from}
23
24
24
proc XiLinkSym {to from} {XiProtokoll "\tgenerating symbolic link  $from -> $to"; exec ln -s $to $from}
25
proc XiLinkSym {to from} {XiProtokoll "\tgenerating symbolic link  $from -> $to"; exec ln -s $to $from}
25
26
Lines 332-338 Link Here
332
} else {# must be updated
333
} else {# must be updated
333
  if [file writable $BINPATH] {# update can be done
334
  if [file writable $BINPATH] {# update can be done
334
    XiProtokoll "\nInstallation of Shell script:  $BINPATH/xtem"
335
    XiProtokoll "\nInstallation of Shell script:  $BINPATH/xtem"
335
    XiUnlink $BINPATH/xtem; XiLinkSym $INSTPATH/xtem/xtem $BINPATH/xtem
336
    XiUnlink $BINPATH/xtem; XiCopy $INSTPATH/xtem/xtem $BINPATH/xtem
336
  } else {# needs update, but cannot be updated!
337
  } else {# needs update, but cannot be updated!
337
    XiProtokollEnd4 "\n$BINPATH/xtem [XiNotInstalledText]"
338
    XiProtokollEnd4 "\n$BINPATH/xtem [XiNotInstalledText]"
338
    XiProtokollEnd4 "\trm $BINPATH/xtem\n  ln -s $INSTPATH/xtem/xtem $BINPATH/xtem" ; XiProtokoll ""
339
    XiProtokollEnd4 "\trm $BINPATH/xtem\n  ln -s $INSTPATH/xtem/xtem $BINPATH/xtem" ; XiProtokoll ""
Lines 348-354 Link Here
348
  } else {# changecode must be updated
349
  } else {# changecode must be updated
349
    if [file writable $BINPATH] {# update can be done
350
    if [file writable $BINPATH] {# update can be done
350
      XiProtokoll "\nInstallation of program:  $BINPATH/changecode"
351
      XiProtokoll "\nInstallation of program:  $BINPATH/changecode"
351
      XiUnlink $BINPATH/changecode; XiLinkSym $INSTPATH/xtem/changecode $BINPATH/changecode
352
      XiUnlink $BINPATH/changecode; XiCopy $INSTPATH/xtem/changecode $BINPATH/changecode
352
    } else {# needs update, but cannot be updated!
353
    } else {# needs update, but cannot be updated!
353
      XiProtokollEnd4 "\n$BINPATH/changecode [XiNotInstalledText]"
354
      XiProtokollEnd4 "\n$BINPATH/changecode [XiNotInstalledText]"
354
      XiProtokollEnd4 "\trm $BINPATH/changecode\n  ln -s $INSTPATH/xtem/changecode $BINPATH/changecode"
355
      XiProtokollEnd4 "\trm $BINPATH/changecode\n  ln -s $INSTPATH/xtem/changecode $BINPATH/changecode"
Lines 368-374 Link Here
368
  } else {# hyphen_show must be updated
369
  } else {# hyphen_show must be updated
369
    if [file writable $BINPATH] {# update can be done
370
    if [file writable $BINPATH] {# update can be done
370
      XiProtokoll "\nInstallation of program:  $BINPATH/hyphen_show"
371
      XiProtokoll "\nInstallation of program:  $BINPATH/hyphen_show"
371
      XiUnlink $BINPATH/hyphen_show; XiLinkSym $INSTPATH/xtem/hyphen_show $BINPATH/hyphen_show
372
      XiUnlink $BINPATH/hyphen_show; XiCopy $INSTPATH/xtem/hyphen_show $BINPATH/hyphen_show
372
    } else {# needs update, but cannot be updated!
373
    } else {# needs update, but cannot be updated!
373
      XiProtokollEnd4 "\n$BINPATH/hyphen_show [XiNotInstalledText]"
374
      XiProtokollEnd4 "\n$BINPATH/hyphen_show [XiNotInstalledText]"
374
      XiProtokollEnd4 "\trm $BINPATH/hyphen_show\n  ln -s $INSTPATH/xtem/hyphen_show $BINPATH/hyphen_show"
375
      XiProtokollEnd4 "\trm $BINPATH/hyphen_show\n  ln -s $INSTPATH/xtem/hyphen_show $BINPATH/hyphen_show"
Lines 388-394 Link Here
388
} else {# must be updated
389
} else {# must be updated
389
  if [file writable $MANPATH] {# update can be done
390
  if [file writable $MANPATH] {# update can be done
390
    XiProtokoll "\nInstallation of man page:  $MANPATH/xtem.1"
391
    XiProtokoll "\nInstallation of man page:  $MANPATH/xtem.1"
391
    XiUnlink $MANPATH/xtem.1; XiLinkSym $INSTPATH/xtem/xtem.1 $MANPATH/xtem.1
392
    XiUnlink $MANPATH/xtem.1; XiCopy $INSTPATH/xtem/xtem.1 $MANPATH/xtem.1
392
  } else {# needs update, but cannot be updated!
393
  } else {# needs update, but cannot be updated!
393
    XiProtokollEnd4 "\n$MANPATH/xtem.1 [XiNotInstalledText]"
394
    XiProtokollEnd4 "\n$MANPATH/xtem.1 [XiNotInstalledText]"
394
    XiProtokollEnd4 "\trm $MANPATH/xtem.1\n  ln -s $INSTPATH/xtem/xtem.1 $MANPATH/xtem.1"; XiProtokoll ""
395
    XiProtokollEnd4 "\trm $MANPATH/xtem.1\n  ln -s $INSTPATH/xtem/xtem.1 $MANPATH/xtem.1"; XiProtokoll ""
Lines 404-410 Link Here
404
} else {# must be updated
405
} else {# must be updated
405
  if [file writable $MANPATH] {# update can be done
406
  if [file writable $MANPATH] {# update can be done
406
    XiProtokoll "\nInstallation of man page:  $MANPATH/hyphen_show.1"
407
    XiProtokoll "\nInstallation of man page:  $MANPATH/hyphen_show.1"
407
    XiUnlink $MANPATH/hyphen_show.1; XiLinkSym $INSTPATH/xtem/hyphen_show.1 $MANPATH/hyphen_show.1
408
    XiUnlink $MANPATH/hyphen_show.1; XiCopy $INSTPATH/xtem/hyphen_show.1 $MANPATH/hyphen_show.1
408
  } else {# needs update, but cannot be updated!
409
  } else {# needs update, but cannot be updated!
409
    XiProtokollEnd4 "\n$MANPATH/hyphen_show.1 [XiNotInstalledText]"
410
    XiProtokollEnd4 "\n$MANPATH/hyphen_show.1 [XiNotInstalledText]"
410
    XiProtokollEnd4 "\trm $MANPATH/hyphen_show.1\n  ln -s $INSTPATH/xtem/hyphen_show.1 $MANPATH/hyphen_show.1"
411
    XiProtokollEnd4 "\trm $MANPATH/hyphen_show.1\n  ln -s $INSTPATH/xtem/hyphen_show.1 $MANPATH/hyphen_show.1"

Return to bug 96001