summaryrefslogtreecommitdiffhomepage
path: root/tools/updater.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/updater.py')
-rwxr-xr-xtools/updater.py28
1 files changed, 16 insertions, 12 deletions
diff --git a/tools/updater.py b/tools/updater.py
index b853533..b86fcec 100755
--- a/tools/updater.py
+++ b/tools/updater.py
@@ -1,18 +1,22 @@
-#! /usr/bin/python3
+# Copyright 2026, Amlal El Mahrouss and Ne.org contributors.
+# Open C++ Libraries is licensed under BSL-1.0
from os import system
-# Copyright 2026, Amlal El Mahrouss and Ne.org contributors.
-# The Ne Syste, is licensed under the BSL-1.0 or Apache 2.0.
+class UpdateFunctor:
+ def __init__(self):
+ system("cd libs && cd kernel && git pull && cd ..")
+ system("cd libs && cd nectar && git pull && cd ..")
+ system("cd libs && cd build && git pull && cd ..")
+ system("cd libs && cd boot && git pull && cd ..")
+ system("cd papers && git pull")
+ system("git add src/kernel src/nectar papers src/build src/boot")
+ system("git commit -s -S")
+
+def start():
+ functor = UpdateFunctor()
+ print("INFO: Updater: Functor called")
+
-if __name__ == '__main__':
- print("precommit: running format.sh...")
- system("cd libs && cd kernel && git pull && cd ..")
- system("cd libs && cd nectar && git pull && cd ..")
- system("cd libs && cd build && git pull && cd ..")
- system("cd libs && cd boot && git pull && cd ..")
- system("cd papers && git pull")
- system("git add src/kernel src/nectar papers src/build src/boot")
- system("git commit -s -S")