dm_install_dir "$repo" "$to"
}
+## usage: dm_install_wordpress <wp_repo_path> <to_path>
+function dm_install_wordpress() {
+ local repo="$1"
+ local to="$2"
+ dm_install_dir "$repo" "$to"
+ dm_remove_files "$to" civicrm.config.php.wordpress .gitignore
+}
+
## Generate civicrm-version.php
## usage: dm_generate_version <file> <ufname>
function dm_generate_version() {
# copy all the stuff
dm_install_core "$SRC" "$TRG/civicrm/civicrm"
dm_install_packages "$SRC/packages" "$TRG/civicrm/civicrm/packages"
-
-for F in $SRC/WordPress/*; do
- cp $F $TRG/civicrm
-done
-rm -f $TRG/civicrm/civicrm.config.php.wordpress
+dm_install_wordpress "$SRC/WordPress" "$TRG/civicrm"
# copy docs
cp $SRC/WordPress/civicrm.config.php.wordpress $TRG/civicrm/civicrm/civicrm.config.php