Better reindent script (from newCompromise branch)

This commit is contained in:
Cas Cremers 2010-11-10 21:58:33 +01:00
parent 6d9d89eca2
commit 5c53d4bb9e

View File

@ -1,5 +1,10 @@
#!/bin/sh #!/bin/sh
# #
# Indent any changed files, ending in .c or .h # Indent any files ending in .c or .h
# #
svn st | grep "^[MA].*\.[ch]$"| awk '{print $2}' | xargs indent # Apparently unstable behaviour is possible; a stupid fix for my
# concrete problem was to always run it twice.
#
indent *.c *.h
indent *.c *.h