2013-09-29 00:21:18 +04:00
|
|
|
!:
|
2013-12-29 10:55:19 +04:00
|
|
|
:: /=main=/bin/update/hoon
|
2013-09-29 00:21:18 +04:00
|
|
|
::
|
|
|
|
=> .(-< `who=@p`-<)
|
2013-10-06 11:44:07 +04:00
|
|
|
|= [est=time eny=@uw]
|
2013-09-29 00:21:18 +04:00
|
|
|
|= ~
|
2013-10-06 11:44:07 +04:00
|
|
|
^- bowl
|
|
|
|
?: =(~zod who) [~ ~]
|
|
|
|
=+ bos==+(bos=(sein who) ?.(=(bos who) bos ~zod))
|
2013-12-29 10:57:14 +04:00
|
|
|
=+ wen=(scot %da (sub est ~s5))
|
2013-10-06 11:44:07 +04:00
|
|
|
=+ ^= syn ^- (list ,@tas)
|
|
|
|
[%main %arvo %try ~]
|
2013-09-29 00:21:18 +04:00
|
|
|
:_ ~
|
2013-10-06 11:44:07 +04:00
|
|
|
^- (list gift)
|
|
|
|
:- [%la %leaf "updating..."]
|
|
|
|
%+ turn syn
|
|
|
|
|= des=@tas
|
2013-12-29 10:55:19 +04:00
|
|
|
~& [%reading `path`/(scot %p bos)/[des]/wen]
|
|
|
|
=+ der=((hard dome) .^(%cv /(scot %p bos)/[des]/wen))
|
|
|
|
~& [%reading `path`/(scot %p who)/[des]/wen]
|
|
|
|
=+ owr=((hard dome) .^(%cv /(scot %p who)/[des]/wen))
|
2013-10-06 11:44:07 +04:00
|
|
|
=+ sab=`saba`[bos des [0 let.der] (flop (turn hit.der |=(a=frog q.a)))]
|
|
|
|
=+ lum=(~(auld ze est owr) est %fine sab)
|
2013-12-09 01:23:03 +04:00
|
|
|
?~ lum
|
2013-10-06 11:44:07 +04:00
|
|
|
`gift`[%la %leaf "{(trip des)} failed to merge"]
|
2013-12-09 01:23:03 +04:00
|
|
|
?~ u.lum
|
2013-10-06 11:44:07 +04:00
|
|
|
`gift`[%la %leaf "{(trip des)} is up to date"]
|
|
|
|
`gift`[%ok des u.u.lum]
|