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!"
18 RSYNCOPTIONS
="-avC $DM_EXCLUDES_RSYNC --include=core"
19 RSYNCCOMMAND
="$DM_RSYNC $RSYNCOPTIONS"
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 for CODE
in css i
install js packages PEAR templates bin joomla CRM api extern Reports settings
; do
36 [ -d $SRC/$CODE ] && $RSYNCCOMMAND $SRC/$CODE $TRG
39 # delete any setup.sh or setup.php4.sh if present
40 if [ -d $TRG/bin
] ; then
41 rm -f $TRG/bin
/setup.sh
42 rm -f $TRG/bin
/setup.php4.sh
43 rm -f $TRG/bin
/setup.bat
47 if [ ! -d $TRG/sql
] ; then
50 for F
in $SRC/sql
/civicrm
*.mysql
$SRC/sql
/counties.US.sql.gz
$SRC/sql
/case_sample
*.mysql
; do
55 rm -rf $TRG/sql
/civicrm_
*.??_??.mysql
59 cp $SRC/agpl-3.0.txt
$TRG
61 cp $SRC/README.txt
$TRG
62 cp $SRC/CONTRIBUTORS.txt
$TRG
63 cp $SRC/agpl-3.0.exception.txt
$TRG
64 cp $SRC/civicrm.config.php
$TRG
68 function civicrmVersion( ) {
69 return array( 'version' => '$DM_VERSION',
71 'revision' => '$DM_REVISION' );
73 " > $TRG/civicrm-version.php
79 mkdir com_civicrm
/admin
80 mkdir com_civicrm
/site
81 mkdir com_civicrm
/site
/elements
82 mkdir com_civicrm
/admin
/civicrm
83 mkdir com_civicrm
/admin
/language
84 mkdir com_civicrm
/admin
/language
/en-GB
85 mkdir com_civicrm
/admin
/helpers
86 mkdir com_civicrm
/admin
/plugins
88 # copying back end code to admin folder
89 cp civicrm
/joomla
/script.civicrm.php com_civicrm
/
90 cp civicrm
/joomla
/admin
/admin.civicrm.php com_civicrm
/admin
91 cp civicrm
/joomla
/admin
/config.xml com_civicrm
/admin
92 cp civicrm
/joomla
/admin
/configure.php com_civicrm
/admin
93 cp civicrm
/joomla
/admin
/license.civicrm.txt com_civicrm
/admin
94 cp civicrm
/joomla
/admin
/toolbar.civicrm.php com_civicrm
/admin
95 cp civicrm
/joomla
/admin
/toolbar.civicrm.html.php com_civicrm
/admin
96 cp -r -p civicrm
/joomla
/admin
/helpers
/* com_civicrm
/admin
/helpers
97 cp -r -p civicrm
/joomla
/admin
/plugins
/* com_civicrm
/admin
/plugins
98 cp civicrm
/joomla
/admin
/language
/en-GB
/* com_civicrm
/admin
/language
/en-GB
100 # joomla 3.0 like admin.civicrm.php to be called civicrm.php
101 # lets keep both versions there
102 cp com_civicrm
/admin
/admin.civicrm.php com_civicrm
/admin
/civicrm.php
104 # copying front end code
105 cp civicrm
/joomla
/site
/civicrm.html.php com_civicrm
/site
106 cp civicrm
/joomla
/site
/civicrm.php com_civicrm
/site
107 cp -r civicrm
/joomla
/site
/views com_civicrm
/site
108 cp -r -p civicrm
/joomla
/site
/elements
/* com_civicrm
/site
/elements
111 cp -r -p civicrm
/* com_civicrm
/admin
/civicrm
113 # generate alt version of civicrm.xml
114 $DM_PHP $DM_SOURCEDIR/distmaker
/utils
/joomlaxml.php
$DM_SOURCEDIR com_civicrm
$DM_VERSION alt
116 # generate alt version of package
117 $DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-
$DM_VERSION-joomla-alt.
zip com_civicrm
119 # delete the civicrm directory
120 rm -rf com_civicrm
/admin
/civicrm
122 # generate zip version of civicrm.xml
123 $DM_PHP $DM_SOURCEDIR/distmaker
/utils
/joomlaxml.php
$DM_SOURCEDIR com_civicrm
$DM_VERSION zip
125 $DM_ZIP -q -r -9 com_civicrm
/admin
/civicrm.
zip civicrm
127 # generate zip within zip file
128 $DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-
$DM_VERSION-joomla.
zip com_civicrm
-x 'com_civicrm/admin/civicrm'