Added debian stuff & changed the build path to produce ncc-<version> in Makefile
This commit is contained in:
parent
8ce6c68d77
commit
3a52815213
7 changed files with 49 additions and 39 deletions
10
.idea/runConfigurations/Build_Tarball.xml
generated
10
.idea/runConfigurations/Build_Tarball.xml
generated
|
@ -1,10 +0,0 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Build Tarball" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
|
||||
<makefile filename="$PROJECT_DIR$/Makefile" target="tar" workingDirectory="" arguments="">
|
||||
<envs />
|
||||
</makefile>
|
||||
<method v="2">
|
||||
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Clean" run_configuration_type="MAKEFILE_TARGET_RUN_CONFIGURATION" />
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
8
.idea/runConfigurations/Clean.xml
generated
8
.idea/runConfigurations/Clean.xml
generated
|
@ -1,8 +0,0 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Clean" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile" activateToolWindowBeforeRun="false">
|
||||
<makefile filename="$PROJECT_DIR$/Makefile" target="clean" workingDirectory="" arguments="">
|
||||
<envs />
|
||||
</makefile>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
43
Makefile
43
Makefile
|
@ -1,11 +1,12 @@
|
|||
# Variables
|
||||
PHPCC := $(shell which php)
|
||||
PHPAB := $(shell which phpab)
|
||||
BUILD_PATH := build
|
||||
SRC_PATH := src
|
||||
INSTALLER_PATH := $(SRC_PATH)/installer
|
||||
CONFIG_PATH := $(SRC_PATH)/config
|
||||
TIMESTAMP := $(shell date +%Y%m%d%H%M%S)
|
||||
BUILD_VERSION := $(shell cat $(SRC_PATH)/ncc/VERSION)
|
||||
BUILD_PATH := build/ncc-$(BUILD_VERSION)
|
||||
|
||||
# List of paths for autoloading
|
||||
AUTOLOAD_PATHS := $(addprefix $(SRC_PATH)/ncc/ThirdParty/, \
|
||||
|
@ -56,28 +57,28 @@ autoload: $(addsuffix /autoload_spl.php, $(AUTOLOAD_PATHS)) $(SRC_PATH)/ncc/auto
|
|||
|
||||
.PHONY: redist
|
||||
redist: autoload
|
||||
rm -rf $(BUILD_PATH)/src
|
||||
mkdir -p $(BUILD_PATH)/src
|
||||
cp -rf $(SRC_PATH)/ncc/* $(BUILD_PATH)/src
|
||||
cp -f $(INSTALLER_PATH)/installer $(BUILD_PATH)/src/INSTALL
|
||||
cp -f $(INSTALLER_PATH)/ncc.sh $(BUILD_PATH)/src/ncc.sh
|
||||
cp -f $(CONFIG_PATH)/ncc.yaml $(BUILD_PATH)/src/default_config.yaml
|
||||
cp -f $(CONFIG_PATH)/ncc.yaml $(BUILD_PATH)/src/CLI/template_config.yaml
|
||||
cp -f $(CONFIG_PATH)/default_repositories.json $(BUILD_PATH)/src/default_repositories.json
|
||||
cp -f $(CONFIG_PATH)/ncc-package.xml $(BUILD_PATH)/src/ncc-package.xml
|
||||
cp -f $(INSTALLER_PATH)/extension $(BUILD_PATH)/src/extension
|
||||
chmod +x $(BUILD_PATH)/src/INSTALL
|
||||
cp -f LICENSE $(BUILD_PATH)/src/LICENSE
|
||||
cp -f README.md $(BUILD_PATH)/src/README.md
|
||||
cp -f $(INSTALLER_PATH)/hash_check.php $(BUILD_PATH)/src/hash_check.php
|
||||
$(PHPCC) $(BUILD_PATH)/src/hash_check.php
|
||||
rm $(BUILD_PATH)/src/hash_check.php
|
||||
cp -f $(INSTALLER_PATH)/generate_build_files.php $(BUILD_PATH)/src/generate_build_files.php
|
||||
$(PHPCC) $(BUILD_PATH)/src/generate_build_files.php
|
||||
rm $(BUILD_PATH)/src/generate_build_files.php
|
||||
rm -rf $(BUILD_PATH)
|
||||
mkdir -p $(BUILD_PATH)
|
||||
cp -rf $(SRC_PATH)/ncc/* $(BUILD_PATH)
|
||||
cp -f $(INSTALLER_PATH)/installer $(BUILD_PATH)/INSTALL
|
||||
cp -f $(INSTALLER_PATH)/ncc.sh $(BUILD_PATH)/ncc.sh
|
||||
cp -f $(CONFIG_PATH)/ncc.yaml $(BUILD_PATH)/default_config.yaml
|
||||
cp -f $(CONFIG_PATH)/ncc.yaml $(BUILD_PATH)/CLI/template_config.yaml
|
||||
cp -f $(CONFIG_PATH)/default_repositories.json $(BUILD_PATH)/default_repositories.json
|
||||
cp -f $(CONFIG_PATH)/ncc-package.xml $(BUILD_PATH)/ncc-package.xml
|
||||
cp -f $(INSTALLER_PATH)/extension $(BUILD_PATH)/extension
|
||||
chmod +x $(BUILD_PATH)/INSTALL
|
||||
cp -f LICENSE $(BUILD_PATH)/LICENSE
|
||||
cp -f README.md $(BUILD_PATH)/README.md
|
||||
cp -f $(INSTALLER_PATH)/hash_check.php $(BUILD_PATH)/hash_check.php
|
||||
$(PHPCC) $(BUILD_PATH)/hash_check.php
|
||||
rm $(BUILD_PATH)/hash_check.php
|
||||
cp -f $(INSTALLER_PATH)/generate_build_files.php $(BUILD_PATH)/generate_build_files.php
|
||||
$(PHPCC) $(BUILD_PATH)/generate_build_files.php
|
||||
rm $(BUILD_PATH)/generate_build_files.php
|
||||
|
||||
$(BUILD_PATH)/build_$(TIMESTAMP).tar.gz: redist
|
||||
cd $(BUILD_PATH)/src; tar -czvf ../build_$(TIMESTAMP).tar.gz *
|
||||
cd $(BUILD_PATH); tar -czvf ../ncc_$(BUILD_VERSION).tar.gz *
|
||||
|
||||
.PHONY: tar
|
||||
tar: $(BUILD_PATH)/build_$(TIMESTAMP).tar.gz
|
||||
|
|
9
src/debian/changelog
Normal file
9
src/debian/changelog
Normal file
|
@ -0,0 +1,9 @@
|
|||
ncc (2.0.0) unstable; urgency=medium
|
||||
|
||||
* New major release.
|
||||
* Various changes and improvements.
|
||||
* Updated to be compatible with PHP 8.0+.
|
||||
* Added support for package management.
|
||||
* Enhancements to the compiler and toolkit.
|
||||
|
||||
-- netkas <netkas@nosial.net> Tue, 04 Oct 2023 21:24:00 +0000
|
9
src/debian/control
Normal file
9
src/debian/control
Normal file
|
@ -0,0 +1,9 @@
|
|||
Package: ncc
|
||||
Version: 2.0.0
|
||||
Architecture: any
|
||||
Maintainer: netkas <netkas@nosial.net>
|
||||
Homepage: https://git.n64.cc/nosial/ncc
|
||||
Depends: php (>= 8.0), php-mbstring, php-common, php-ctype, php-curl, zlib1g, php-zip
|
||||
Description: Nosial Code Compiler is a multi-purpose compiler, package manager, and toolkit written in PHP.
|
||||
NCC (Nosial Code Compiler) is a versatile tool designed for various tasks related to PHP development.
|
||||
It allows you to compile PHP code, manage packages, and perform various tasks in a PHP-centric environment.
|
8
src/debian/copyright
Normal file
8
src/debian/copyright
Normal file
|
@ -0,0 +1,8 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: ncc
|
||||
Upstream-Contact: netkas <netkas@nosial.net>
|
||||
Source: https://git.n64.cc/nosial/ncc
|
||||
|
||||
Files: *
|
||||
Copyright: 2022-2023 Nosial - All Rights Reserved.
|
||||
License: MIT
|
1
src/ncc/VERSION
Normal file
1
src/ncc/VERSION
Normal file
|
@ -0,0 +1 @@
|
|||
2.0.0
|
Loading…
Add table
Reference in a new issue