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/WordPress"
25 git checkout
"$DM_REF_WORDPRESS"
28 # make sure and clean up before
33 if [ ! -d $TRG ] ; then
37 if [ ! -d $TRG/civicrm
] ; then
41 if [ ! -d $TRG/civicrm
/civicrm
] ; then
42 mkdir
$TRG/civicrm
/civicrm
46 for CODE
in css i js packages PEAR templates bin CRM api extern Reports
install settings
; do
48 [ -d $SRC/$CODE ] && $RSYNCCOMMAND $SRC/$CODE $TRG/civicrm
/civicrm
51 # delete any setup.sh or setup.php4.sh if present
52 if [ -d $TRG/civicrm
/civicrm
/bin
] ; then
53 rm -f $TRG/civicrm
/civicrm
/bin
/setup.sh
54 rm -f $TRG/civicrm
/civicrm
/bin
/setup.php4.sh
55 rm -f $TRG/civicrm
/civicrm
/bin
/setup.bat
59 if [ ! -d $TRG/civicrm
/civicrm
/sql
] ; then
60 mkdir
$TRG/civicrm
/civicrm
/sql
63 for F
in $SRC/sql
/civicrm
*.mysql
$SRC/sql
/counties.US.sql.gz
$SRC/sql
/case_sample
*.mysql
; do
64 cp $F $TRG/civicrm
/civicrm
/sql
68 rm -rf $TRG/civicrm
/civicrm
/sql
/civicrm_
*.??_??.mysql
71 for F
in $SRC/WordPress
/*; do
76 cp $SRC/agpl-3.0.txt
$TRG/civicrm
/civicrm
77 cp $SRC/gpl.txt
$TRG/civicrm
/civicrm
78 cp $SRC/README.txt
$TRG/civicrm
/civicrm
79 cp $SRC/civicrm.config.php
$TRG/civicrm
/civicrm
83 function civicrmVersion( ) {
84 return array( 'version' => '$DM_VERSION',
86 'revision' => '$DM_REVISION' );
88 " > $TRG/civicrm
/civicrm
/civicrm-version.php
92 $DM_ZIP -r -9 $DM_TARGETDIR/civicrm-
$DM_VERSION-wordpress.
zip *