Skip to content
Snippets Groups Projects
Unverified Commit 800dab19 authored by ayduns's avatar ayduns Committed by GitHub
Browse files

Merge pull request #30367 from seamuslee001/joomla5_build

Create a Joomla 5 build
parents b7edc0f5 0442a135
Branches
Tags
No related merge requests found
......@@ -39,6 +39,7 @@ BPACK=0
D5PACK=0
D7DIR=0
J5PACK=0
JOOMLA5PACK=0
WP5PACK=0
PATCHPACK=0
SK5PACK=0
......@@ -178,11 +179,21 @@ case $1 in
;;
# JOOMLA PHP5
j5|Joomla)
Joomla)
dm_note "Enable CiviCRM-Joomla"
J5PACK=1
;;
Joomla5)
dm_note "Enable CiviCRM-Joomla 5"; echo;
JOOMLA5PACK=1
;;
j5)
echo >&2 "j5 is ambiguous"
exit 1
;;
# WORDPRESS PHP5
wp5|WordPress)
dm_note "Enable CiviCRM-Wordpress"
......@@ -213,6 +224,7 @@ case $1 in
BPACK=1
D5PACK=1
J5PACK=1
JOOMLA5PACK=1
WP5PACK=1
PATCHPACK=1
SKPACK=1
......@@ -295,6 +307,12 @@ if [ "$J5PACK" = 1 ]; then
bash $P/dists/joomla_php5.sh
fi
if [ "$JOOMLA5PACK" = 1 ]; then
dm_title "Build CiviCRM-Joomla 5"
dm_git_checkout "$DM_SOURCEDIR/joomla" "$DM_REF_JOOMLA"
bash $P/dists/joomla5_php.sh
fi
if [ "$WP5PACK" = 1 ]; then
dm_title "Build CiviCRM-Wordpress"
dm_git_checkout "$DM_SOURCEDIR/WordPress" "$DM_REF_WORDPRESS"
......
#!/bin/bash
set -e
P=`dirname $0`
CFFILE=$P/../distmaker.conf
if [ ! -f $CFFILE ] ; then
echo "NO DISTMAKER.CONF FILE!"
exit 1
else
. $CFFILE
fi
. "$P/common.sh"
SRC=$DM_SOURCEDIR
TRG=$DM_TMPDIR/civicrm
dm_h1 "Prepare files (civicrm-*-joomla5.zip)"
dm_reset_dirs "$TRG" "$DM_TMPDIR/com_civicrm"
cp $SRC/civicrm.config.php $TRG
dm_generate_version "$TRG/civicrm-version.php" Joomla
dm_install_core "$SRC" "$TRG"
dm_install_coreext "$SRC" "$TRG" $(dm_core_exts)
dm_install_packages "$SRC/packages" "$TRG/packages"
dm_install_vendor "$SRC/vendor" "$TRG/vendor"
rm -rf "$TRG/vendor/psr/log"
dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_cvext com.iatspayments.civicrm "$TRG/ext/iatspayments"
## WTF: It's so good we'll install it twice!
## (The first is probably extraneous, but there could be bugs dependent on it.)
dm_install_joomla "$SRC/joomla" "$TRG/joomla"
dm_install_joomla "$SRC/joomla" "$DM_TMPDIR/com_civicrm"
## joomla 3.0 likes admin.civicrm.php to be called civicrm.php; keep both names
cp "$SRC/joomla/admin/admin.civicrm.php" "$DM_TMPDIR/com_civicrm/admin/civicrm.php"
# gen zip file
cd $DM_TMPDIR;
cp -R -p civicrm com_civicrm/admin/civicrm
${DM_PHP:-php} "$DM_SOURCEDIR/distmaker/utils/joomlaxml.php" "$DM_SOURCEDIR" com_civicrm "$DM_VERSION" alt
dm_zip "$DM_TARGETDIR/civicrm-$DM_VERSION-joomla5.zip" com_civicrm
rm -rf com_civicrm/admin/civicrm
# clean up
rm -rf com_civicrm
rm -rf "$TRG"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment