summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChristian Klinger2016-09-30 14:28:43 +0200
committerChristian Klinger2016-09-30 14:28:43 +0200
commite1cb835a57a730006adc6eedd58d4794b5136d85 (patch)
treeb3461f1b1473726a1ac1fe93807d68a507c77c3d /scripts
parentbugfix. (diff)
downloadpvs2-e1cb835a57a730006adc6eedd58d4794b5136d85.tar.gz
pvs2-e1cb835a57a730006adc6eedd58d4794b5136d85.tar.xz
pvs2-e1cb835a57a730006adc6eedd58d4794b5136d85.zip
added simple "beautify" script that will run astyle on all source files.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/beautify.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/beautify.sh b/scripts/beautify.sh
new file mode 100755
index 0000000..5cb47f2
--- /dev/null
+++ b/scripts/beautify.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+# run astyle on all source files
+for f in `find src -name "*.cpp" -o -name "*.h"`; do
+ astyle --options=./.astylerc $f
+done;
+