summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-18 09:48:33 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-18 09:48:33 (GMT)
commitc5d2e4bf2db36c8f2af69cadac5c61a6aad7dcbf (patch)
tree91cf96f638e4cd9f3130808972eb7373fb291650 /bin
parent57d2c5b4f1338f2f56bc46be22a43718ce1de179 (diff)
downloadkolab-wap-c5d2e4bf2db36c8f2af69cadac5c61a6aad7dcbf.tar.gz
Add scripts to enable and disable all console messages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/disable-all-console-messages4
-rwxr-xr-xbin/enable-all-console-messages4
2 files changed, 8 insertions, 0 deletions
diff --git a/bin/disable-all-console-messages b/bin/disable-all-console-messages
new file mode 100755
index 0000000..4af5f3b
--- /dev/null
+++ b/bin/disable-all-console-messages
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+sed -r -i -e 's|^(\s*)console|\1//console|g' `find . -type f -name "*.php"`
+
diff --git a/bin/enable-all-console-messages b/bin/enable-all-console-messages
new file mode 100755
index 0000000..d5640d5
--- /dev/null
+++ b/bin/enable-all-console-messages
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+sed -r -i -e 's|^(\s*)//console|\1console|g' `find . -type f -name "*.php"`
+