commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / distmaker / dists / wordpress_php5.sh
1 #!/bin/bash
2 set -ex
3
4 P=`dirname $0`
5 CFFILE=$P/../distmaker.conf
6 if [ ! -f $CFFILE ] ; then
7 echo "NO DISTMAKER.CONF FILE!"
8 exit 1
9 else
10 . $CFFILE
11 fi
12 . "$P/common.sh"
13
14 SRC=$DM_SOURCEDIR
15 TRG=$DM_TMPDIR/civicrm
16
17 # copy all the stuff
18 dm_reset_dirs "$TRG" "$TRG/civicrm/civicrm"
19 cp $SRC/WordPress/civicrm.config.php.wordpress $TRG/civicrm/civicrm/civicrm.config.php
20 dm_generate_version "$TRG/civicrm/civicrm/civicrm-version.php" Wordpress
21 dm_install_core "$SRC" "$TRG/civicrm/civicrm"
22 dm_install_packages "$SRC/packages" "$TRG/civicrm/civicrm/packages"
23 dm_install_vendor "$SRC/vendor" "$TRG/civicrm/civicrm/vendor"
24 dm_install_bower "$SRC/bower_components" "$TRG/civicrm/civicrm/bower_components"
25 dm_install_wordpress "$SRC/WordPress" "$TRG/civicrm"
26
27 # gen tarball
28 cd $TRG
29 ${DM_ZIP:-zip} -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-wordpress.zip *
30
31 # clean up
32 rm -rf $TRG