From 265c46a864839fdc5e836be927c58cfdbb146817 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 26 Feb 2026 08:33:24 +0100 Subject: chore: scripting organization updates. Signed-off-by: Amlal El Mahrouss --- configure-gcc-n64.pl | 2 +- configure-mingw-n64.pl | 2 +- libconf.pl | 18 ++++++++++++++++++ scripts/libconf.pl | 18 ------------------ 4 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 libconf.pl delete mode 100644 scripts/libconf.pl diff --git a/configure-gcc-n64.pl b/configure-gcc-n64.pl index 0f0f29c..9a9b815 100755 --- a/configure-gcc-n64.pl +++ b/configure-gcc-n64.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -require './scripts/libconf.pl'; +require './libconf.pl'; libconf->new(); diff --git a/configure-mingw-n64.pl b/configure-mingw-n64.pl index 53b7a78..6026ef0 100755 --- a/configure-mingw-n64.pl +++ b/configure-mingw-n64.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -require './scripts/libconf.pl'; +require './libconf.pl'; libconf->new(); 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/scripts/libconf.pl b/scripts/libconf.pl deleted file mode 100644 index 1a1bc7e..0000000 --- a/scripts/libconf.pl +++ /dev/null @@ -1,18 +0,0 @@ -#!/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 -- cgit v1.2.3