Commit | Line | Data |
---|---|---|
f07f92fa TO |
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" | |
045528b3 | 19 | cp $SRC/backdrop/civicrm.config.php.backdrop $TRG/civicrm.config.php |
f07f92fa TO |
20 | dm_generate_version "$TRG/civicrm-version.php" Backdrop |
21 | dm_install_core "$SRC" "$TRG" | |
22 | dm_install_packages "$SRC/packages" "$TRG/packages" | |
23 | dm_install_vendor "$SRC/vendor" "$TRG/vendor" | |
24 | dm_install_bower "$SRC/bower_components" "$TRG/bower_components" | |
25 | dm_install_drupal "$SRC/backdrop" "$TRG/backdrop" | |
242d3c46 | 26 | dm_install_cvext com.iatspayments.civicrm "$TRG/ext/iatspayments" |
f07f92fa TO |
27 | |
28 | # gen tarball | |
29 | cd $TRG/.. | |
27c2f1af | 30 | tar czf $DM_TARGETDIR/civicrm-$DM_VERSION-backdrop.tar.gz civicrm |
f07f92fa TO |
31 | |
32 | # clean up | |
33 | rm -rf $TRG |