setup.sh - Add support for WordPress
authorTim Otten <totten@civicrm.org>
Wed, 13 Nov 2013 01:53:19 +0000 (17:53 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 13 Nov 2013 01:53:19 +0000 (17:53 -0800)
bin/setup.conf.txt
bin/setup.sh

index b9c8762f47aa2318c7311a131ea06071206cc5ff..5b173c59be5815cf19bbffd083f948b4df30c5be 100644 (file)
@@ -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
index bbf19adab1132ba534664d5c7cc2e8aa86d3be69..1d5435622e1d29069b3006dc18b7d40d4a3d9476 100755 (executable)
@@ -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,