From 89d50dac6d120f54734e81ef72ce2558aad2d35e Mon Sep 17 00:00:00 2001 From: Netkas Date: Tue, 2 Aug 2022 18:36:47 -0400 Subject: [PATCH] Updated Makefile to create a redist and tar archive --- Makefile | 14 +++++++++++++- src/ncc/CLI/ProjectMenu.php | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2588e80..87d9269 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,14 @@ autoload: - phpab --output src/ncc/autoload.php src/ncc \ No newline at end of file + phpab --output src/ncc/autoload.php src/ncc + +redist: + rm -rf build + mkdir build build/src + cp -rf src/ncc/* build/src + cp src/installer/installer build/src/install.sh + cp LICENSE build/src/LICENSE + cp README.md build/src/README.md + +tar: + rm -f build/ncc.tar.gz + cd build/src; tar -czvf ../ncc.tar.gz * \ No newline at end of file diff --git a/src/ncc/CLI/ProjectMenu.php b/src/ncc/CLI/ProjectMenu.php index 04d2cca..2b1377b 100644 --- a/src/ncc/CLI/ProjectMenu.php +++ b/src/ncc/CLI/ProjectMenu.php @@ -111,7 +111,7 @@ { $options = [ new CliHelpSection(['help'], 'Displays this help menu about the value command'), - new CliHelpSection(['create'], 'Creates a new NCC project'), + new CliHelpSection(['create', '--src', '--package', '--name'], 'Creates a new NCC project'), ]; $options_padding = \ncc\Utilities\Functions::detectParametersPadding($options) + 4;