From d0f9587835e4fcb822cbb87fc9934f65ade59185 Mon Sep 17 00:00:00 2001 From: "totten@civicrm.org" Date: Sat, 21 Jun 2014 05:58:41 -0700 Subject: [PATCH] distmaker - dm_install_wordpress - Should allow building on "wp-demo" (untested) --- distmaker/dists/common.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/distmaker/dists/common.sh b/distmaker/dists/common.sh index 39159de7c9..6cd98a40ed 100644 --- a/distmaker/dists/common.sh +++ b/distmaker/dists/common.sh @@ -145,8 +145,18 @@ function dm_install_l10n() { function dm_install_wordpress() { local repo="$1" local to="$2" - dm_install_dir "$repo" "$to" - dm_remove_files "$to" civicrm.config.php.wordpress .gitignore + + if [ ! -d "$to" ]; then + mkdir -p "$to" + fi + $DM_RSYNC -avC \ + --exclude=.git \ + --exclude=.svn \ + --exclude=civicrm.config.php.wordpress \ + --exclude=.gitignore \ + --exclude=civicrm \ + "$repo/./" "$to/./" + ## Need --exclude=civicrm for self-building on WP site } ## Generate civicrm-version.php -- 2.25.1