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
24 # checkout the right code revisions
25 pushd "$DM_SOURCEDIR/drupal"
26 git checkout
"$DM_REF_DRUPAL6"
29 # make sure and clean up before
35 for CODE
in css i js packages PEAR templates bin CRM api drupal extern Reports
install settings
; do
37 [ -d $SRC/$CODE ] && $RSYNCCOMMAND $SRC/$CODE $TRG
40 # delete any setup.sh or setup.php4.sh if present
41 if [ -d $TRG/bin
] ; then
42 rm -f $TRG/bin
/setup.sh
43 rm -f $TRG/bin
/setup.php4.sh
44 rm -f $TRG/bin
/setup.bat
49 if [ ! -d $TRG/sql
] ; then
53 for F
in $SRC/sql
/civicrm
*.mysql
$SRC/sql
/counties.US.sql.gz
$SRC/sql
/case_sample
*.mysql
; do
58 rm -rf $TRG/sql
/civicrm_
*.??_??.mysql
62 cp $SRC/agpl-3.0.txt
$TRG
64 cp $SRC/README.txt
$TRG
65 cp $SRC/CONTRIBUTORS.txt
$TRG
66 cp $SRC/agpl-3.0.exception.txt
$TRG
67 cp $SRC/drupal
/civicrm.config.php.drupal
$TRG/civicrm.config.php
71 function civicrmVersion( ) {
72 return array( 'version' => '$DM_VERSION',
74 'revision' => '$DM_REVISION' );
76 " > $TRG/civicrm-version.php
80 tar czf
$DM_TARGETDIR/civicrm-
$DM_VERSION-drupal6.
tar.gz civicrm