Skip to content

Commit

Permalink
Add some comments to runastyle script
Browse files Browse the repository at this point in the history
  • Loading branch information
aggro80 committed Jun 22, 2011
1 parent 5a72bed commit 8b8ea6f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runastyle
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash
# The version check in this script is used to avoid commit battles
# between different developers that use different astyle versions as
# different versions might have different output (this has happened in
# the past).

# If project management wishes to take a newer astyle version into use
# just change this string to match astyle version string.
ASTYLE_VERSION="Artistic Style Version 2.01"

if [ "`astyle --version 2>&1`" != "${ASTYLE_VERSION}" ]; then
echo "You should use: ${ASTYLE_VERSION}";
exit 1;
Expand Down

0 comments on commit 8b8ea6f

Please sign in to comment.