Skip to content

Commit cceef2c

Browse files
committed
Allow comments after #endif/#else in deploy script
ChangeLog: * deploy.sh:
1 parent 87ea39f commit cceef2c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

deploy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ BEGIN {
5050
skip += 1
5151
next
5252
}
53-
/^#elif/ && skip == 1 {
53+
/^#elif\>/ && skip == 1 {
5454
skip = 0
5555
sub(/^#elif/, "#if")
5656
}
5757
/^#if !'$1'$/ {
5858
in_negated_if = 1
5959
next
6060
}
61-
/^#else$/ && (in_negated_if == 1 || skip == 1) {
61+
/^#else\>/ && (in_negated_if == 1 || skip == 1) {
6262
if (in_negated_if == 1) {
6363
in_negated_if = 0
6464
if (skip != 0) {
@@ -72,7 +72,7 @@ BEGIN {
7272
}
7373
next
7474
}
75-
/^#endif$/ && skip > 0 {
75+
/^#endif\>/ && skip > 0 {
7676
if (skip > 0) {
7777
skip -= 1
7878
if (skip == 0) {
@@ -83,7 +83,7 @@ BEGIN {
8383
exit 1
8484
}
8585
}
86-
/^#endif$/ && drop_next_endif == 1 {
86+
/^#endif\>/ && drop_next_endif == 1 {
8787
drop_next_endif = 0
8888
next
8989
}

0 commit comments

Comments
 (0)