5 CFFILE
=$P/..
/distmaker.conf
6 if [ ! -f $CFFILE ] ; then
7 echo "NO DISTMAKER.CONF FILE!"
15 TRG
=$DM_TMPDIR/civicrm
17 # copy all the rest of the stuff
18 dm_reset_dirs
"$TRG" "$DM_TMPDIR/com_civicrm"
19 cp $SRC/civicrm.config.php
$TRG
20 dm_generate_version
"$TRG/civicrm-version.php" Joomla
21 dm_install_core
"$SRC" "$TRG"
22 dm_install_packages
"$SRC/packages" "$TRG/packages"
24 ## WTF: It's so good we'll install it twice!
25 ## (The first is probably extraneous, but there could be bugs dependent on it.)
26 dm_install_joomla
"$SRC/joomla" "$TRG/joomla"
27 dm_install_joomla
"$SRC/joomla" "$DM_TMPDIR/com_civicrm"
29 ## joomla 3.0 likes admin.civicrm.php to be called civicrm.php; keep both names
30 cp "$SRC/joomla/admin/admin.civicrm.php" "$DM_TMPDIR/com_civicrm/admin/civicrm.php"
35 # generate alt version of package
36 cp -r -p civicrm com_civicrm
/admin
/civicrm
37 $DM_PHP $DM_SOURCEDIR/distmaker
/utils
/joomlaxml.php
$DM_SOURCEDIR com_civicrm
$DM_VERSION alt
38 $DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-
$DM_VERSION-joomla-alt.
zip com_civicrm
39 rm -rf com_civicrm
/admin
/civicrm
41 # generate zip version of civicrm.xml
42 $DM_PHP $DM_SOURCEDIR/distmaker
/utils
/joomlaxml.php
$DM_SOURCEDIR com_civicrm
$DM_VERSION zip
43 $DM_ZIP -q -r -9 com_civicrm
/admin
/civicrm.
zip civicrm
44 $DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-
$DM_VERSION-joomla.
zip com_civicrm
-x 'com_civicrm/admin/civicrm'