From 8b0798d325001652fe221fc7a7cd14cacabdcb8f Mon Sep 17 00:00:00 2001
From: juampy <juampy72@gmail.com>
Date: Thu, 30 Aug 2012 22:51:08 +0200
Subject: [PATCH] Issue #1763674 by juampy: Script to configure a git
 repository to use this project

---
 install.sh |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 install.sh

diff --git a/install.sh b/install.sh
new file mode 100644
index 0000000..1e3d19b
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+# Installs all dependencies for running PHP Code Sniffer using Drupal's coding standards on
+# a pre-commit hook.
+#
+# Relaled links:
+# http://drupal.org/project/drupalcs
+# http://drupal.org/sandbox/bevan.wishart/1441638
+# http://pear.php.net/package/PHP_CodeSniffer
+#
+# USAGE
+# =====
+# Place this project out of a Drupal site. For example, at your home directory.
+# Open the drupalcs directory and execute the following command:
+#   sh -x install.sh /path/to/your/drupal/root
+# Now when you make your next commit, the pre-commit git hook will fire and review the syntax.
+sudo pear update-channels
+sudo pear install PHP_CodeSniffer
+sudo ln -sv $(pwd)/Drupal $(pear config-get php_dir)/PHP/CodeSniffer/Standards/Drupal
+git clone http://git.drupal.org/sandbox/bevan.wishart/1441638.git $HOME/git_pre_commit_hooks
+cp $HOME/git_pre_commit_hooks/pre-commit* $1/.git/hooks/
-- 
1.7.9.5

