]> lifelog.hopto.org Git - PerlCNF.git/commitdiff
Fixed, absolute first setup requirements.
authorWill Budic <redacted>
Fri, 1 Dec 2023 11:50:04 +0000 (22:50 +1100)
committerWill Budic <redacted>
Fri, 1 Dec 2023 11:50:04 +0000 (22:50 +1100)
install_cpan_INSTALL_PREPARE_PROJECT_SETUP_FIRST.sh [new file with mode: 0755]
install_cpan_a_first.sh [deleted file]

diff --git a/install_cpan_INSTALL_PREPARE_PROJECT_SETUP_FIRST.sh b/install_cpan_INSTALL_PREPARE_PROJECT_SETUP_FIRST.sh
new file mode 100755 (executable)
index 0000000..b5b12de
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# This is all required for working with module installation from the shell.
+# And later to run tests and have a test driven application development, setup.
+#
+# If using perlbrew with the test, sometimes this setup is required from the shell:
+#   $ export PerlCNF_TESTS_PATH=tests
+# And run test with:
+#  $ perlbrew exec perl -Mlocal::lib tests/testAll.pl
+# Instead of:
+#  $ perl tests/testAll.pl#
+# As latert Perl v5.36+ version should work fine without the install of local::lib.
+#
+perl -MCPAN -e 'CPAN::install(local::lib)'
+perl -MCPAN -Mlocal::lib -e 'CPAN::install(LWP)'
+perl -MCPAN -Mlocal::lib -e 'CPAN::install(Text::Levenshtein::XS)'
+perl -MCPAN -Mlocal::lib -e 'CPAN::install(Term::Term:)'
+perl -MCPAN -Mlocal::lib -e 'CPAN::install(Term::ReadKey)'
+./install_cpan_modules_required.pl
diff --git a/install_cpan_a_first.sh b/install_cpan_a_first.sh
deleted file mode 100755 (executable)
index f3f73fe..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env bash
-cpan -i Term::Term::ANSIColor Term::ReadKey
-./install_cpan_modules_required.pl