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`-<)
|
2014-06-02 22:41:53 +04:00
|
|
|
=> %= .
|
|
|
|
+
|
|
|
|
=> +
|
|
|
|
|%
|
|
|
|
++ merge
|
|
|
|
|= [gem=germ who=@p bos=@p est=time]
|
|
|
|
|= [der=dome owr=dome des=desk]
|
|
|
|
^- gift
|
|
|
|
=+ sab=`saba`[bos des [0 let.der] (flop (turn hit.der |=(a=frog q.a)))]
|
|
|
|
=+ lum=(~(auld ze est owr) gem who des sab)
|
|
|
|
?~ lum
|
|
|
|
^- gift
|
|
|
|
:+ %la %leaf
|
|
|
|
"{(trip des)} failed to merge, please rerun with a merge option"
|
|
|
|
?~ u.lum
|
|
|
|
`gift`[%la %leaf "{(trip des)} is up to date"]
|
|
|
|
`gift`[%ok des u.u.lum]
|
|
|
|
--
|
|
|
|
==
|
2013-10-06 11:44:07 +04:00
|
|
|
|= [est=time eny=@uw]
|
2014-05-20 22:53:49 +04:00
|
|
|
|= gem=$|([germ ~] ~)
|
2013-12-30 02:27:44 +04:00
|
|
|
=+ wen=(scot %da (need (slaw %da +>-:/===))) :: heinous
|
2013-10-06 11:44:07 +04:00
|
|
|
?: =(~zod who) [~ ~]
|
2014-06-02 22:41:53 +04:00
|
|
|
=+ bos==+(bos=(sein who) ?:(=(bos who) ~zod bos))
|
|
|
|
=+ syn=`(list ,@tas)`~[%main %arvo %try]
|
|
|
|
=+ ^= desks
|
2013-10-06 11:44:07 +04:00
|
|
|
%+ turn syn
|
2014-06-02 22:41:53 +04:00
|
|
|
|= des=desk
|
2013-12-29 10:58:54 +04:00
|
|
|
=+ der=((hard dome) .^(%cv /(scot %p bos)/[des]/[wen]))
|
|
|
|
=+ owr=((hard dome) .^(%cv /(scot %p who)/[des]/[wen]))
|
2014-06-02 22:41:53 +04:00
|
|
|
[der owr des]
|
|
|
|
=+ gifts=`(list gift)`(turn desks (merge ?~(gem %fine -.gem) who bos est))
|
|
|
|
`bowl`[[[%la %leaf "updating..."] gifts] ~]
|