distmaker - dm_install_wordpress - Should allow building on "wp-demo" (untested)
authortotten@civicrm.org <Tim Otten>
Sat, 21 Jun 2014 12:58:41 +0000 (05:58 -0700)
committertotten@civicrm.org <Tim Otten>
Sun, 22 Jun 2014 07:58:08 +0000 (00:58 -0700)
distmaker/dists/common.sh

index 39159de7c90743de110ebce2ab8d06f0ba6aaa03..6cd98a40ed746fc7ac524c20eac3563daf25d2e8 100644 (file)
@@ -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