From fe98fb3903138e7afec5f85b66fbb42f18440bfc Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 9 Mar 2026 04:47:32 +0100 Subject: [CHORE] Rename tools to updater. Signed-off-by: Amlal El Mahrouss --- tools/__init__.py | 7 ------- tools/updater.py | 22 ---------------------- updater.sh | 2 +- updater/__init__.py | 7 +++++++ updater/updater.py | 22 ++++++++++++++++++++++ 5 files changed, 30 insertions(+), 30 deletions(-) delete mode 100644 tools/__init__.py delete mode 100755 tools/updater.py create mode 100644 updater/__init__.py create mode 100755 updater/updater.py diff --git a/tools/__init__.py b/tools/__init__.py deleted file mode 100644 index eeef556..0000000 --- a/tools/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -import updater - -if __name__ == '__main__': - updater.start() - - - diff --git a/tools/updater.py b/tools/updater.py deleted file mode 100755 index afb32f5..0000000 --- a/tools/updater.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 2026, Amlal El Mahrouss and Ne.org contributors. -# Open C++ Libraries is licensed under BSL-1.0 - -from os import system - -class UpdateFunctor: - def __init__(self): - system("cd libs && cd tproc && git pull && cd ..") - system("cd libs && cd fix && git pull && cd ..") - system("cd libs && cd core && git pull && cd ..") - system("git add libs/core libs/fix libs/tproc") - system("git commit -s -S") - - - -def start(): - functor = UpdateFunctor() - print("INFO: Updater: Functor called") - - - - diff --git a/updater.sh b/updater.sh index c22c9a9..6512d2f 100755 --- a/updater.sh +++ b/updater.sh @@ -1,6 +1,6 @@ #! /bin/sh -python3 ./tools/__init__.py +python3 ./updater/__init__.py diff --git a/updater/__init__.py b/updater/__init__.py new file mode 100644 index 0000000..eeef556 --- /dev/null +++ b/updater/__init__.py @@ -0,0 +1,7 @@ +import updater + +if __name__ == '__main__': + updater.start() + + + diff --git a/updater/updater.py b/updater/updater.py new file mode 100755 index 0000000..afb32f5 --- /dev/null +++ b/updater/updater.py @@ -0,0 +1,22 @@ +# Copyright 2026, Amlal El Mahrouss and Ne.org contributors. +# Open C++ Libraries is licensed under BSL-1.0 + +from os import system + +class UpdateFunctor: + def __init__(self): + system("cd libs && cd tproc && git pull && cd ..") + system("cd libs && cd fix && git pull && cd ..") + system("cd libs && cd core && git pull && cd ..") + system("git add libs/core libs/fix libs/tproc") + system("git commit -s -S") + + + +def start(): + functor = UpdateFunctor() + print("INFO: Updater: Functor called") + + + + -- cgit v1.2.3