summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-02-28 14:01:18 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-02-28 14:01:18 +0100
commit9b84b72a325e76131fe7b052733ce94611feb9f6 (patch)
tree4dd1fc0459621bc3b913ac013791fe679cec49f0
parent21be60b2ff5dedafc315b0ca0c2b9380e51e9694 (diff)
chore: updater.sh improvements from OCL.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--.gitignore2
-rw-r--r--tools/__init__.py7
-rwxr-xr-xtools/updater.py28
-rwxr-xr-xupdater.sh6
4 files changed, 31 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
index d7e72a1..8e8b055 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,7 @@
syntax: glob
+__pycache__
+
.claude
xcuserdata/
diff --git a/tools/__init__.py b/tools/__init__.py
new file mode 100644
index 0000000..eeef556
--- /dev/null
+++ b/tools/__init__.py
@@ -0,0 +1,7 @@
+import updater
+
+if __name__ == '__main__':
+ updater.start()
+
+
+
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")
diff --git a/updater.sh b/updater.sh
new file mode 100755
index 0000000..c22c9a9
--- /dev/null
+++ b/updater.sh
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+python3 ./tools/__init__.py
+
+
+