Merge pull request #16627 from seamuslee001/aug_custom_fields_fix
[civicrm-core.git] / distmaker / dists / drupal_sk_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"
19 cp $SRC/drupal/civicrm.config.php.drupal $TRG/civicrm.config.php
20 dm_generate_version "$TRG/civicrm-version.php" Drupal
21 dm_install_core "$SRC" "$TRG"
22 dm_install_coreext "$SRC" "$TRG" $(dm_core_exts)
23 dm_install_packages "$SRC/packages" "$TRG/packages"
24 dm_install_vendor "$SRC/vendor" "$TRG/vendor"
25 dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
26 dm_install_drupal "$SRC/drupal" "$TRG/drupal"
27 dm_install_cvext com.iatspayments.civicrm "$TRG/ext/iatspayments"
28
29 # delete packages that distributions on Drupal.org repalce if present
30 # also delete stuff that we dont really use and should not be included
31 rm -rf $TRG/packages/dompdf
32 rm -rf $TRG/packages/IDS
33 rm -rf $TRG/packages/jquery
34 rm -rf $TRG/packages/ckeditor
35 rm -rf $TRG/packages/tinymce
36
37 # gen tarball
38 cd $TRG/..
39 tar czf $DM_TARGETDIR/civicrm-$DM_VERSION-starterkit.tgz civicrm
40
41 # clean up
42 rm -rf $TRG