Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
800dab19
Unverified
Commit
800dab19
authored
7 months ago
by
ayduns
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #30367 from seamuslee001/joomla5_build
Create a Joomla 5 build
parents
b7edc0f5
0442a135
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
distmaker/distmaker.sh
+19
-1
19 additions, 1 deletion
distmaker/distmaker.sh
distmaker/dists/joomla5_php.sh
+47
-0
47 additions, 0 deletions
distmaker/dists/joomla5_php.sh
with
66 additions
and
1 deletion
distmaker/distmaker.sh
+
19
−
1
View file @
800dab19
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
distmaker/dists/joomla5_php.sh
0 → 100755
+
47
−
0
View file @
800dab19
#!/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
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment