5 # that DAOs are generated
6 # and all the necessary conversions had place!
9 CFFILE
=$P/..
/distmaker.conf
11 if [ ! -f $CFFILE ] ; then
12 echo "NO DISTMAKER.CONF FILE!"
21 TRG
=$DM_TMPDIR/civicrm
23 # checkout the right code revisions
24 pushd "$DM_SOURCEDIR/joomla"
25 git checkout
"$DM_REF_JOOMLA"
28 # make sure and clean up before
33 # copy all the rest of the stuff
34 dm_install_core
"$SRC" "$TRG"
35 dm_install_packages
"$SRC/packages" "$TRG/packages"
36 dm_install_joomla
"$SRC/joomla" "$TRG/joomla"
39 cp $SRC/civicrm.config.php
$TRG
40 dm_generate_version
"$TRG/civicrm-version.php" Joomla
46 mkdir com_civicrm
/admin
47 mkdir com_civicrm
/site
48 mkdir com_civicrm
/site
/elements
49 mkdir com_civicrm
/admin
/civicrm
50 mkdir com_civicrm
/admin
/language
51 mkdir com_civicrm
/admin
/language
/en-GB
52 mkdir com_civicrm
/admin
/helpers
53 mkdir com_civicrm
/admin
/plugins
55 # copying back end code to admin folder
56 cp civicrm
/joomla
/script.civicrm.php com_civicrm
/
57 cp civicrm
/joomla
/admin
/admin.civicrm.php com_civicrm
/admin
58 cp civicrm
/joomla
/admin
/config.xml com_civicrm
/admin
59 cp civicrm
/joomla
/admin
/configure.php com_civicrm
/admin
60 cp civicrm
/joomla
/admin
/license.civicrm.txt com_civicrm
/admin
61 cp civicrm
/joomla
/admin
/toolbar.civicrm.php com_civicrm
/admin
62 cp civicrm
/joomla
/admin
/toolbar.civicrm.html.php com_civicrm
/admin
63 cp -r -p civicrm
/joomla
/admin
/helpers
/* com_civicrm
/admin
/helpers
64 cp -r -p civicrm
/joomla
/admin
/plugins
/* com_civicrm
/admin
/plugins
65 cp civicrm
/joomla
/admin
/language
/en-GB
/* com_civicrm
/admin
/language
/en-GB
67 # joomla 3.0 like admin.civicrm.php to be called civicrm.php
68 # lets keep both versions there
69 cp com_civicrm
/admin
/admin.civicrm.php com_civicrm
/admin
/civicrm.php
71 # copying front end code
72 cp civicrm
/joomla
/site
/civicrm.html.php com_civicrm
/site
73 cp civicrm
/joomla
/site
/civicrm.php com_civicrm
/site
74 cp -r civicrm
/joomla
/site
/views com_civicrm
/site
75 cp -r -p civicrm
/joomla
/site
/elements
/* com_civicrm
/site
/elements
78 cp -r -p civicrm
/* com_civicrm
/admin
/civicrm
80 # generate alt version of civicrm.xml
81 $DM_PHP $DM_SOURCEDIR/distmaker
/utils
/joomlaxml.php
$DM_SOURCEDIR com_civicrm
$DM_VERSION alt
83 # generate alt version of package
84 $DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-
$DM_VERSION-joomla-alt.
zip com_civicrm
86 # delete the civicrm directory
87 rm -rf com_civicrm
/admin
/civicrm
89 # generate zip version of civicrm.xml
90 $DM_PHP $DM_SOURCEDIR/distmaker
/utils
/joomlaxml.php
$DM_SOURCEDIR com_civicrm
$DM_VERSION zip
92 $DM_ZIP -q -r -9 com_civicrm
/admin
/civicrm.
zip civicrm
94 # generate zip within zip file
95 $DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-
$DM_VERSION-joomla.
zip com_civicrm
-x 'com_civicrm/admin/civicrm'