From 78e4b8440f0f6ca22a7ca85384548a7602ee8eac Mon Sep 17 00:00:00 2001
From: Brett Bieber <brett.bieber@gmail.com>
Date: Thu, 13 Aug 2009 15:39:09 +0000
Subject: [PATCH] Use svn:externals to pull in all the necessary plugins, and
 add a setup script which will symlink all plugins.

---
 README   | 14 +++-----------
 setup.sh | 23 +++++++++++++++++++++++
 2 files changed, 26 insertions(+), 11 deletions(-)
 create mode 100755 setup.sh

diff --git a/README b/README
index ce316d37..9d8dd712 100644
--- a/README
+++ b/README
@@ -1,9 +1,8 @@
 ********
 ** How to set up UNL_Elgg:
 ********
-Navigate to the elgg/mod directory in Terminal and sym-link to cas_auth and unl_theme
-	ln -s ../../cas_auth cas_auth
-	ln -s ../../unl_theme unl_theme
+Run the setup.sh script to symlink all the necessary plugins
+	./setup.sh
 Create a database named unl_social
 Import the full_dump.sql file*
 	mysql -u root unl_social < stable_dump.sql
@@ -46,11 +45,4 @@ http://ucommjuhl.unl.edu/UNL_Elgg/elgg, change it!)
 *******
 ** Plugin info
 *******
-
-These are plugins that are included in trunk/UNL_Elgg that must be copied or sym linked to the elgg/mod directory
-
-	flexprofile_mj (doesn't seem to work with a sym link, must be copied. not sure why.)
-	cas_auth
-	unl_theme
-	customindex
-	form
\ No newline at end of file
+Just run the setup.sh script. If any plugins are added, add this to the setup.sh script.
diff --git a/setup.sh b/setup.sh
new file mode 100755
index 00000000..f6f50c7d
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,23 @@
+# Make a directory for elgg data files outside the root
+mkdir elgg_data
+
+cd elgg/mod
+
+# Our Plugins
+ln -s ../../cas_auth cas_auth
+ln -s ../../customindex customindex
+ln -s ../../flexprofile_mj flexprofile_mj
+ln -s ../../unl_theme unl_theme
+ln -s ../../plugins/flexfile flexfile
+ln -s ../../plugins/flexgroupprofile flexgroupprofile
+ln -s ../../plugins/flexprofile flexprofile
+ln -s ../../plugins/form form
+
+# Core Plugins
+ln -s ../../core_plugins/groups groups
+ln -s ../../core_plugins/notifications notifications
+ln -s ../../core_plugins/profile profile
+ln -s ../../core_plugins/reportedcontent reportedcontent
+ln -s ../../core_plugins/riverdashboard riverdashboard
+ln -s ../../core_plugins/thewire thewire
+
-- 
GitLab