Skip to content

Commit

Permalink
FEAT: included an upgrade module (currently just a placeholder)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 20, 2024
1 parent c5edece commit 89b07d9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/boot/sysobj.reb
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ modules: object [
thru-cache: https://src.rebol.tech/modules/thru-cache.reb
to-ascii: https://src.rebol.tech/modules/to-ascii.reb
unicode-utils: https://src.rebol.tech/modules/unicode-utils.reb
upgrade: https://src.rebol.tech/modules/upgrade.red
daytime: https://src.rebol.tech/mezz/prot-daytime.reb
mail: https://src.rebol.tech/mezz/prot-mail.reb
mysql: https://src.rebol.tech/mezz/prot-mysql.reb
Expand Down
24 changes: 24 additions & 0 deletions src/modules/upgrade.reb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Rebol [
title: "Upgrade"
purpose: "Keep track of possible Rebol upgrades"
name: upgrade
type: module
options: [delay]
version: 0.0.1
exports: [upgrade]
author: @Oldes
file: %upgrade.reb
home: https://src.rebol.tech/modules/upgrade.reb
]

system/options/log/upgrade: 4
upgrade: function [
"Check if there are possible upgrades"
][
sys/log/error 'UPGRADE "Not yet implemented!"
;; remove itself...
try [delete system/options/modules/upgrade.reb]
try [unset in system/contexts/user 'upgrade]
try [unset in system/contexts/lib 'upgrade]
system/modules/upgrade: https://src.rebol.tech/modules/upgrade.red
]

0 comments on commit 89b07d9

Please sign in to comment.