initial commit
Change-Id: I5063800f2ddaf90a350325a9186479c25f90f8e1
diff --git a/roles/onos-fabric/files/bin/minify b/roles/onos-fabric/files/bin/minify
new file mode 100755
index 0000000..b91023c
--- /dev/null
+++ b/roles/onos-fabric/files/bin/minify
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+PROG=$(basename $0)
+
+usage() {
+ echo "$PROG: [options]"
+ echo ""
+ echo " -h | --help display this message"
+}
+
+FILE=
+while [ $# -gt 0 ]; do
+ case $1 in
+ -h|--help)
+ usage
+ exit
+ ;;
+ *)
+ FILE=$1
+ ;;
+ esac
+ shift
+done
+
+if [ "$FILE x" == " x" ]; then
+ sed -e 's|//.*$||g' -e '/^\s*$/d' # <&0
+else
+ cat $FILE | sed -e 's|//.*$||g' -e '/^\s*$/d'
+fi