diff --git a/.gitignore b/.gitignore
index c94d134..d9d11ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-.discourse-site
-HELP
+.idea
+discourse
\ No newline at end of file
diff --git a/README.md b/README.md
index df99a44..ce7401c 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,10 @@
-# Plugin-Outlets
+# Discourse Plugin-Outlets Theme Component
-Generated by moving the output of the script below into common/head_tag.html
+1. Invoke the update script to regenerate the required files
```
- #!/bin/bash
- grep -r plugin-outlet /var/www/discourse/app/|grep name|grep -o -e 'name=".*'|awk -F\" '{print $2}'|sort|uniq | while read p ; do
- echo ""
- done
+./update.sh
```
+2. Push updates into your own fork
+3. Install your repository into Discourse via the Admin Panal as a Theme Component
+
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..1e58371
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+# Fail fast
+set -e
+
+# Clone or update discourse against current master
+echo "Updating discourse..."
+if [ -d "discourse" ]; then
+ cd discourse
+ git fetch --depth 1
+ git reset --hard origin/master
+ git clean -dfx
+ cd ..
+else
+ git clone --depth 1 https://github.com/discourse/discourse
+fi
+
+# Build new file with all outlets
+echo "Building new outlets file..."
+echo -n "" > common/head_tag.html
+grep -r plugin-outlet discourse|grep name|grep -o -e 'name=".*'|awk -F\" '{print $2}'|sort|uniq | while read p ; do
+ echo "" >> common/head_tag.html
+done
+
+# We are done
+echo "Done"
\ No newline at end of file