Add astyle script for the project
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 6 Jan 2017 06:55:31 +0000 (22:55 -0800)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 6 Jan 2017 06:55:31 +0000 (22:55 -0800)
style.sh [new file with mode: 0644]

diff --git a/style.sh b/style.sh
new file mode 100644 (file)
index 0000000..487fc6e
--- /dev/null
+++ b/style.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# runs astyle on our code to conform to project standards
+# contributors should run this prior to PRs
+
+# a handful of subprojects (BCM headers, libfdt, etc.) are included in-tree
+# to avoid create merge conflicts when pulling upstream, only style our code
+FILES="*.c *.h arm_chainloader/*.c arm_chainloader/*.cc arm_chainloader/*.h arm_chainloader/drivers/*.cc arm_chainloader/drivers/*.hpp"
+
+# run astyle with tabs and attached braces
+astyle --style=attach --indent=tab $FILES
This page took 0.024862 seconds and 4 git commands to generate.