urbit/main/bin/update.hoon

28 lines
796 B
Plaintext
Raw Normal View History

2013-09-29 00:21:18 +04:00
!:
:: /=main=/bin/update/hoon
2013-09-29 00:21:18 +04:00
::
=> .(-< `who=@p`-<)
|= [est=time eny=@uw]
2014-05-20 22:53:49 +04:00
|= gem=$|([germ ~] ~)
^- bowl
2013-12-30 02:27:44 +04:00
=+ wen=(scot %da (need (slaw %da +>-:/===))) :: heinous
?: =(~zod who) [~ ~]
=+ bos==+(bos=(sein who) ?.(=(bos who) bos ~zod))
=+ ^= syn ^- (list ,@tas)
[%main %arvo %try ~]
2013-09-29 00:21:18 +04:00
:_ ~
^- (list gift)
:- [%la %leaf "updating..."]
%+ turn syn
|= des=@tas
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]))
=+ sab=`saba`[bos des [0 let.der] (flop (turn hit.der |=(a=frog q.a)))]
2014-05-31 02:59:58 +04:00
=+ lum=(~(auld ze est owr) ?~(gem %fine -.gem) sab)
?~ lum
2014-05-31 02:59:58 +04:00
^- 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]