diff options
| -rwxr-xr-x | configure-gcc-n64.pl | 9 | ||||
| -rwxr-xr-x | configure-mingw-n64.pl | 9 | ||||
| -rw-r--r-- | libconf.pl | 18 | ||||
| -rw-r--r-- | src/.gitignore | 2 | ||||
| m--------- | src/nectar | 0 |
5 files changed, 24 insertions, 14 deletions
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 -Subproject 455e647ee1fa5ef74c3fe67884adad05d56655d +Subproject 690fa2807e10f10edd20ce971b900457d7504ff |
