Skip to content

Commit 3b30701

Browse files
committedNov 7, 2016
Prepare commit ensures empty line before doxygen block
1 parent fd15090 commit 3b30701

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
 

‎scripts/astyle.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ astyleit() {
6565
modified=$1.unify_includes_modified
6666
cp "$1" "$modified"
6767
scripts/unify_includes.pl "$modified"
68+
scripts/doxygen_space.pl "$modified"
6869
diff "$1" "$modified" >/dev/null || mv "$modified" "$1"
6970
rm -f "$modified"
7071
}

‎scripts/doxygen_space.pl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/perl -0 -i.sortinc -n
2+
###########################################################################
3+
# doxygen_space.pl
4+
# ---------------------
5+
# begin : October 2016
6+
# copyright : (C) 2016 by Nyall Dawson
7+
# email : nyall dot dawson at gmail dot com
8+
#
9+
###########################################################################
10+
# #
11+
# This program is free software; you can redistribute it and/or modify #
12+
# it under the terms of the GNU General Public License as published by #
13+
# the Free Software Foundation; either version 2 of the License, or #
14+
# (at your option) any later version. #
15+
# #
16+
###########################################################################
17+
18+
# adapted from scripts/sort_includes.sh
19+
20+
# this is slurped in whole-file mode, as opposed to unify_incudes.pl
21+
# which slurps in per-line mode
22+
23+
use strict;
24+
use warnings;
25+
26+
# Space around doxygen start blocks (force blank line before /**)
27+
s#(?<!\n)(\n\h*\/\*\*(?!\*))#\n$1#g;
28+
29+
print;

‎scripts/remove_temporary_files.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ find . \
2424
-name "*.orig" \
2525
-o -name "*.prepare" \
2626
-o -name "*.sortinc" \
27+
-o -name "*.unify_includes_modified" \
2728
-o -name "*.nocopyright" \
2829
-o -name "astyle*.diff" \
2930
-o -name "sha-*.diff" \

0 commit comments

Comments
 (0)
Please sign in to comment.