diff options
author | Tom Yu <tlyu@mit.edu> | 2009-10-27 02:13:31 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2009-10-27 02:13:31 +0000 |
commit | 8552d685d38e6d664186ac671f6bcd2269f41398 (patch) | |
tree | f3558f08467dd0632a828e9835fc56243092632e /src/Makefile.in | |
parent | 20602d4243322cc913cab9c1c13157165715ebbc (diff) | |
download | krb5-8552d685d38e6d664186ac671f6bcd2269f41398.tar.gz krb5-8552d685d38e6d664186ac671f6bcd2269f41398.tar.xz krb5-8552d685d38e6d664186ac671f6bcd2269f41398.zip |
Add "reindent" target to top-level Makefile.in. Add
krb5-batch-indent.el. These perform a batch reindent based upon the
Emacs file-local variable settings, taking care to distinguish between
files that are supposed to conform to the coding style versus those
that are marked as being exceptions. A later commit will explicitly
mark the files that we expect to conform to our coding standards.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23061 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/Makefile.in')
-rw-r--r-- | src/Makefile.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index ac850338cb..758f55eca1 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -654,3 +654,14 @@ coverity prevent cov: Makefiles else \ echo "** Coverity Prevent analysis results not commit to Defect Manager"; \ fi + +FIND = find +XARGS = xargs +EMACS = emacs + +reindent:: + $(FIND) $(SRCTOP) \ + \( -name '*.[ch]' -o -name '*.hin' -o -name '*.[ch].in' \) \ + -print0 | $(XARGS) -0 $(EMACS) -q -batch \ + -l $(SRCTOP)/util/krb5-c-style.el \ + -l $(SRCTOP)/util/krb5-batch-reindent.el |