From c0956f1909f309299e25cc3bdae0c43c47dbf702 Mon Sep 17 00:00:00 2001
From: Tim Otten <totten@civicrm.org>
Date: Tue, 12 Nov 2013 17:53:19 -0800
Subject: [PATCH] setup.sh - Add support for WordPress

---
 bin/setup.conf.txt | 6 ++++++
 bin/setup.sh       | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/bin/setup.conf.txt b/bin/setup.conf.txt
index b9c8762f47..5b173c59be 100644
--- a/bin/setup.conf.txt
+++ b/bin/setup.conf.txt
@@ -42,3 +42,9 @@ DBLOAD=
 # cumbersome during development. To speed it up,
 # list the desired locales.
 # export CIVICRM_LOCALES=en_US,fr_FR
+
+# GenCode produces some CMS-specific config files
+# If omitted, defaults to drupal.
+GENCODE_CMS=""
+# GENCODE_CMS=drupal
+# GENCODE_CMS=wordpress
diff --git a/bin/setup.sh b/bin/setup.sh
index bbf19adab1..1d5435622e 100755
--- a/bin/setup.sh
+++ b/bin/setup.sh
@@ -49,7 +49,7 @@ fi
 # checkout, not packaged code
 if [ -d "$CALLEDPATH/../xml" ]; then
   cd "$CALLEDPATH/../xml"
-  "$PHP5PATH"php GenCode.php $SCHEMA
+  "$PHP5PATH"php GenCode.php $SCHEMA '' $GENCODE_CMS
 fi
 
 # someone might want to use empty password for development,
-- 
GitLab