-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from anhredweb/RMIGRATOR-26
RMIGRATOR-26 #comment move make_release.sh to PHING packager
- Loading branch information
Showing
191 changed files
with
293 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
comp.name=redmigrator | ||
comp.version=1.0.0 | ||
comp.version=1.5.0 | ||
comp.joomla.version=j2.5_j3 | ||
plg.joomla.version=j1.5_j2.5 | ||
www.dir=/mnt/data/redMIGRATOR_Project/redMIGRATOR | ||
package.dir=/mnt/data/redMIGRATOR_Project/redMIGRATOR/releases | ||
www.dir=/var/www/dev.redmigrator | ||
repo.dir=/home/albert/github/redMIGRATOR | ||
package.dir=/home/albert/git.package/redmigrator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- ================================================================== --> | ||
<!-- redMIGRATOR packager --> | ||
<!-- This PHING build file generates the redMIGRATOR extension package --> | ||
<!-- To use in your environment do the following steps: --> | ||
<!-- Change the following variables in build.properties file --> | ||
<!-- (copy variables from build.properties.dist ) --> | ||
<!-- - change the version in variable comp.version --> | ||
<!-- - change the source folder path in variable repo.dir --> | ||
<!-- - change the package folder path in variable package.dir --> | ||
<!-- - execute this PHING build file --> | ||
<!-- ================================================================== --> | ||
<project name="com_redmigrator" default="dist"> | ||
<!-- Do initialization stuff --> | ||
<property file="build.properties" override="true" /> | ||
|
||
<!-- Name of extension --> | ||
<property name="extension" value="${comp.name}" override="true"/> | ||
|
||
<!-- Folder where the redMIGRATOR repository is located --> | ||
<property name="extpath" value="${repo.dir}" override="true"/> | ||
|
||
<!-- Load extension property in XML file --> | ||
<xmlproperty file="${extpath}/${extension}.xml" prefix="extensionDetails" keepRoot="false" /> | ||
|
||
<!-- Get extension version from XML --> | ||
<property | ||
name="version" | ||
value="${extensionDetails.version}" | ||
override="true"/> | ||
|
||
<!-- Target dir where packages will be created --> | ||
<property name="targetdir" value="${package.dir}/package-${extension}-${version}" override="true"/> | ||
|
||
<!-- Target dir where packages will be created --> | ||
<property name="targetdir" value="${package.dir}/com_${extension}-${version}" override="true" /> | ||
|
||
<!-- ============================================ --> | ||
<!-- Create packages folder --> | ||
<!-- ============================================ --> | ||
<target name="prepare"> | ||
<!-- Check if the target folder exists. If not, create it --> | ||
<if> | ||
<available file="${targetdir}" type="dir" property="dir.Exist" /> | ||
<then> | ||
<echo msg="Removing old ${targetdir}" /> | ||
<delete dir="${targetdir}" /> | ||
</then> | ||
</if> | ||
|
||
<!-- remove old packaged file --> | ||
<echo msg="Removing old package ${package.dir}/${extension}-${version}.zip" /> | ||
<delete file="${package.dir}/${extension}-${version}.zip" /> | ||
|
||
<echo msg="Making directory to store the packages at ${targetdir}" /> | ||
<mkdir dir="${targetdir}" /> | ||
|
||
</target> | ||
|
||
<!-- ============================================ --> | ||
<!-- Target: build --> | ||
<!-- ============================================ --> | ||
<!-- Copy the source files to the target folder --> | ||
|
||
<target name="build" depends="prepare"> | ||
|
||
<echo msg="Copying INSTALLER files to build directory..."/> | ||
<copy todir="${targetdir}"> | ||
<fileset dir="${extpath}/"> | ||
<include name="LICENSE.txt"/> | ||
<include name="redmigrator.xml"/> | ||
<include name="install.php"/> | ||
</fileset> | ||
</copy> | ||
|
||
<echo msg="Copying COMPONENT folder to build directory..."/> | ||
<copy todir="${targetdir}/component"> | ||
<fileset dir="${extpath}/component"> | ||
<include name="**"/> | ||
<exclude name=".*"/> | ||
</fileset> | ||
</copy> | ||
|
||
<echo msg="Copying MEDIA folder to build directory..."/> | ||
<copy todir="${targetdir}/media/com_redmigrator"> | ||
<fileset dir="${extpath}/media/com_redmigrator"> | ||
<include name="**"/> | ||
<exclude name=".*"/> | ||
</fileset> | ||
</copy> | ||
|
||
<echo msg="Copying redCORE LIBRARIES folder to build directory..."/> | ||
<copy todir="${targetdir}/redCORE"> | ||
<fileset dir="${extpath}/redCORE"> | ||
<include name="**"/> | ||
<exclude name=".*"/> | ||
<exclude name="build.*"/> | ||
<exclude name="*.md"/> | ||
<!-- reduce redCORE package --> | ||
<exclude name="media/redcore/js/lib/jquery-ui/jquery-ui.js"/> | ||
<exclude name="media/redcore/css/lib/bootstrap/css/bootstrap.css"/> | ||
</fileset> | ||
</copy> | ||
|
||
<echo message="Copying libraries..."/> | ||
<copy todir="${targetdir}/libraries/redmigrator" overwrite="true"> | ||
<fileset dir="${extpath}/libraries/redmigrator"> | ||
<include name="**"/> | ||
</fileset> | ||
</copy> | ||
</target> | ||
|
||
<!-- ============================================ --> | ||
<!-- (DEFAULT) Target: dist --> | ||
<!-- ============================================ --> | ||
<target name="dist" depends="build"> | ||
<echo msg="Creating ZIP archive..."/> | ||
|
||
<zip destfile="${targetdir}/../${extension}-${version}.zip"> | ||
<fileset dir="${targetdir}"> | ||
<include name="**"/> | ||
<exclude name=".*"/> | ||
</fileset> | ||
</zip> | ||
|
||
<echo msg="Files copied and compressed in build directory OK!"/> | ||
|
||
<delete dir="${targetdir}" /> | ||
</target> | ||
</project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- ================================================================== --> | ||
<!-- redMIGRATOR 1.5 packager --> | ||
<!-- This PHING build file generates the redMIGRATOR 1.5 Plugins package --> | ||
<!-- To use in your environment do the following steps: --> | ||
<!-- Change the following variables in build.properties file --> | ||
<!-- (copy variables from build.properties.dist ) --> | ||
<!-- - change the version in variable comp.version --> | ||
<!-- - change the source folder path in variable repo.dir --> | ||
<!-- - change the package folder path in variable package.dir --> | ||
<!-- - execute this PHING build file --> | ||
<!-- ================================================================== --> | ||
|
||
<project name="modules packager" basedir="." default="main"> | ||
|
||
<!-- Do initialization stuff --> | ||
<property file="build.properties" override="true"/> | ||
|
||
<!-- Folder where the redMIGRATOR 1.5 repository PLUGINS are located --> | ||
<property name="extpath" value="${repo.dir}/plugins" override="true" /> | ||
|
||
<!-- Target dir where module packages will be created --> | ||
<property name="targetdir" value="${package.dir}/redMIGRATOR-Plugins" override="true" /> | ||
|
||
<!-- MAIN --> | ||
<target name="main" description="Loops through folders of plugin groups"> | ||
|
||
<!-- Cleanup build area --> | ||
<delete dir="${targetdir}" /> | ||
<mkdir dir="${targetdir}" /> | ||
|
||
<!-- Loop through plugins groups --> | ||
<foreach param="group_name" target="plugin_loop"> | ||
<fileset dir="${extpath}"> | ||
<type type="dir" /> | ||
<depth max="0" min="0" /> | ||
</fileset> | ||
</foreach> | ||
</target> | ||
|
||
<target name="plugin_loop" description="Loops through plugins folders inside groups"> | ||
|
||
<!-- Loop through plugins --> | ||
<foreach param="plugin_name" target="plugin_packager"> | ||
<fileset dir="${extpath}/${group_name}"> | ||
<type type="dir" /> | ||
<depth max="0" min="0" /> | ||
</fileset> | ||
</foreach> | ||
|
||
</target> | ||
|
||
<target name="plugin_packager" description="Packages the extension for delivery"> | ||
|
||
<!-- Create package folder --> | ||
<mkdir dir="${targetdir}/${group_name}/${plugin_name}" /> | ||
|
||
<!-- Copy module files & folder --> | ||
<copy todir="${targetdir}/${group_name}/${plugin_name}"> | ||
<fileset dir="${extpath}/${group_name}/${plugin_name}"> | ||
<include name="**"/> | ||
<exclude name=".*"/> | ||
</fileset> | ||
</copy> | ||
|
||
<!-- Load extension property in XML file --> | ||
<xmlproperty file="${targetdir}/${group_name}/${plugin_name}/${plugin_name}.xml" prefix="extensionDetails" keepRoot="false" /> | ||
|
||
<zip destfile="${targetdir}/${group_name}/plg_${group_name}_${plugin_name}-v${extensionDetails.version}.zip" | ||
basedir="${extpath}/${group_name}/${plugin_name}"> | ||
<fileset dir="${extpath}/${group_name}/${plugin_name}"> | ||
<include name="**" /> | ||
<exclude name=".*" /> | ||
</fileset> | ||
</zip> | ||
|
||
<!-- clean up temporary folder --> | ||
<delete dir="${targetdir}/${group_name}/${plugin_name}" /> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<extension type="component" version="2.5.0" method="upgrade"> | ||
<name>COM_REDMIGRATOR</name> | ||
<author>redCOMPONENT</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>http://www.redcomponent.com</authorUrl> | ||
<copyright>Copyright (C) 2005 - 2013 redCOMPONENT.com. All rights reserved.</copyright> | ||
<license>GNU General Public License version 2 or later.</license> | ||
<creationDate>2012-08-30</creationDate> | ||
<version>1.5.0</version> | ||
<description>COM_REDMIGRATOR_DESC</description> | ||
<scriptfile>install.php</scriptfile> | ||
<redcore version="1.0" /> | ||
<install folder="component/admin"> | ||
<sql> | ||
<file driver="mysql" charset="utf8">sql/install/mysql/install.sql</file> | ||
<file driver="mysqli" charset="utf8">sql/install/mysql/install.sql</file> | ||
</sql> | ||
</install> | ||
<uninstall folder="component/admin"> | ||
<sql> | ||
<file driver="mysql" charset="utf8">sql/install/mysql/uninstall.sql</file> | ||
<file driver="mysqli" charset="utf8">sql/install/mysql/uninstall.sql</file> | ||
</sql> | ||
</uninstall> | ||
<update folder="component/admin"> | ||
<schemas> | ||
<schemapath type="mysql">sql/updates/mysql</schemapath> | ||
<schemapath type="mysqli">sql/updates/mysql</schemapath> | ||
</schemas> | ||
</update> | ||
|
||
<files folder="component/site"> | ||
<filename>index.html</filename> | ||
</files> | ||
|
||
<administration> | ||
<menu view="cpanel" img="components/com_redmigrator/images/redmigrator.png">COM_REDMIGRATOR</menu> | ||
|
||
<files folder="component/admin"> | ||
<folder>controllers</folder> | ||
<folder>css</folder> | ||
<folder>helpers</folder> | ||
<folder>images</folder> | ||
<folder>includes</folder> | ||
<folder>js</folder> | ||
<folder>models</folder> | ||
<folder>sql</folder> | ||
<folder>views</folder> | ||
|
||
<filename>access.xml</filename> | ||
<filename>config.xml</filename> | ||
<filename>controller.php</filename> | ||
<filename>index.html</filename> | ||
<filename>redmigrator.php</filename> | ||
</files> | ||
|
||
<languages folder="component/admin/language"> | ||
<language tag="en-GB">en-GB/en-GB.com_redmigrator.ini</language> | ||
<language tag="en-GB">en-GB/en-GB.com_redmigrator.sys.ini</language> | ||
</languages> | ||
</administration> | ||
|
||
<!-- Libraries to install --> | ||
<libraries> | ||
<!-- library name="redmigrator" /--> | ||
</libraries> | ||
|
||
<!-- Modules to install with the component --> | ||
<modules> | ||
<!--module name="mod_remigrator" client="site" /--> | ||
</modules> | ||
<!-- Plugins to install --> | ||
<plugins> | ||
<!-- plugin name="redmigrator" group="system" /--> | ||
</plugins> | ||
</extension> |
Oops, something went wrong.