From cd4fff758813594b56eefbda706bc15e8b88dc84 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 29 Jan 2026 03:12:13 +0100 Subject: chore: update nectar and perl scripts. Signed-off-by: Amlal El Mahrouss --- configure-gcc-n64.pl | 9 ++------- configure-mingw-n64.pl | 9 ++------- libconf.pl | 18 ++++++++++++++++++ src/.gitignore | 2 ++ src/nectar | 2 +- 5 files changed, 25 insertions(+), 15 deletions(-) create mode 100644 libconf.pl diff --git a/configure-gcc-n64.pl b/configure-gcc-n64.pl index dd7101f..9a9b815 100755 --- a/configure-gcc-n64.pl +++ b/configure-gcc-n64.pl @@ -1,13 +1,8 @@ #!/usr/bin/perl -w -use strict; -use Cwd; +require './libconf.pl'; -if ($ENV{USER} ne "root") { - die "You must be root to run this script.\n"; -} - -system("sh", "git", "submodule", "update", "--init", "--recursive"); +libconf->new(); chdir("./toolchains/mingw-w64-gcc/") or die "Cannot change directory: $!"; diff --git a/configure-mingw-n64.pl b/configure-mingw-n64.pl index 8c47c53..6026ef0 100755 --- a/configure-mingw-n64.pl +++ b/configure-mingw-n64.pl @@ -1,13 +1,8 @@ #!/usr/bin/perl -w -use strict; -use Cwd; +require './libconf.pl'; -if ($ENV{USER} ne "root") { - die "You must be root to run this script.\n"; -} - -system("sh", "git", "submodule", "update", "--init", "--recursive"); +libconf->new(); chdir("./toolchains/mingw-w64-nekernel/") or die "Cannot change directory: $!"; diff --git a/libconf.pl b/libconf.pl new file mode 100644 index 0000000..1a1bc7e --- /dev/null +++ b/libconf.pl @@ -0,0 +1,18 @@ +#!/usr/bin/perl -w + +package libconf; + +use strict; +use Cwd; + +sub new() { + + if ($ENV{USER} ne "root") { + die "You must be root to run this script.\n"; + } + + system("sh", "git", "submodule", "update", "--init", "--recursive") or die "Git error: $!"; + +} + +"libconf"; \ No newline at end of file diff --git a/src/.gitignore b/src/.gitignore index 5eec986..7a983ea 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -1 +1,3 @@ .claude +*.epm +*.img \ No newline at end of file diff --git a/src/nectar b/src/nectar index 455e647..690fa28 160000 --- a/src/nectar +++ b/src/nectar @@ -1 +1 @@ -Subproject commit 455e647ee1fa5ef74c3fe67884adad05d56655d0 +Subproject commit 690fa2807e10f10edd20ce971b900457d7504ff3 -- cgit v1.2.3