Utility script to build component, module(s), plugin(s) from source folder.
Run php build.php
to build component and all modules and plugins.
Command line options:
--com
- build only component package(including all plugins listed in package xml).--shafile
- create a hash file alongside the zip file. Default: do not create.--mod all
- build all modules.-
--mod module_name
or--mod module_name1,module_name2
- buildmodule_name
module(s).
--plg all
- build all plugins.-
--plg "plugin_name"
or--plg "plugin_name1,plugin_name2"
- buildplugin_name
plugin(s).
--u
- update xml file with information about new version.update-jcomments.xml
orupdate-jcomments-modules.xml
orupdate-jcomments-plugins.xml
. This option available only with--com
,--mod
or--plg
options. E.g.php build.php --plg all --u
E.g. php build.php --mod "mod_jcomments_latest,mod_jcomments_most_commented"
Package and sha file with hashes will be placed at the root of the repo. Modules and plugins will be placed under the build
folder.
After building modules and/or plugins(not included within component package) README.md file under the build
folder will be updated to match extensions versions in this file and extensions versions from xml.
NOTE!
module_name
is a folder name under modules
.
plugin_name
is a resulting zip-filename w/o version and extension. E.g. plg_jcomments_avatar
or plug_cbjcomments
.
Package version in build/pkg_jcomments.xml
updated from component/jcomments.xml
file when copied to zip.