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/drupal"
25 git checkout
"$DM_REF_DRUPAL"
28 # make sure and clean up before
34 for CODE
in css i js packages PEAR templates bin CRM api drupal extern Reports
install 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
46 # delete packages that distributions on Drupal.org repalce if present
47 # also delete stuff that we dont really use and should not be included
48 rm -rf $TRG/packages
/dompdf
49 rm -rf $TRG/packages
/IDS
50 rm -rf $TRG/packages
/jquery
51 rm -rf $TRG/packages
/ckeditor
52 rm -rf $TRG/packages
/tinymce
57 if [ ! -d $TRG/sql
] ; then
61 for F
in $SRC/sql
/civicrm
*.mysql
$SRC/sql
/counties.US.sql.gz
$SRC/sql
/case_sample
*.mysql
; do
66 rm -rf $TRG/sql
/civicrm_
*.??_??.mysql
70 cp $SRC/agpl-3.0.txt
$TRG
72 cp $SRC/README.txt
$TRG
73 cp $SRC/Sponsors.txt
$TRG
74 cp $SRC/agpl-3.0.exception.txt
$TRG
75 cp $SRC/drupal
/civicrm.config.php.drupal
$TRG/civicrm.config.php
79 function civicrmVersion( ) {
80 return array( 'version' => '$DM_VERSION',
82 'revision' => '$DM_REVISION' );
84 " > $TRG/civicrm-version.php
88 tar czf
$DM_TARGETDIR/civicrm-
$DM_VERSION-starterkit.tgz civicrm