Skip to content

Commit ac8f9c6

Browse files
authored
minor fix up for make checkstyle (#271)
* Fixes shell expression in checkstyle target An incorrect shell expression was preventing the `make checkstyle UPDATE=1` from applying the perltidy fixes. Signed-off-by: nega <[email protected]> * add *.orig (and *.rej) to the gitignore Signed-off-by: nega <[email protected]> --------- Signed-off-by: nega <[email protected]>
1 parent ec7038b commit ac8f9c6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*.tar.gz
66
*.rpm
77
*.tdy
8+
*.orig
9+
*.rej
810

911
# ignore autogenerated test files
1012
/tests/**/*.log

Diff for: Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ endif
270270
if [ 0 != $$? ] ; then \
271271
RC=1; \
272272
echo "saw mismatch for $$FILE"; \
273-
if [[ -f $$FILE.tdy && "$(UPDATE)x" != 'x' ]] ; then \
273+
if [ -f $$FILE.tdy -a "$(UPDATE)x" != 'x' ]; then \
274274
echo "updating $$FILE"; \
275275
mv $$FILE $$FILE.orig; \
276276
mv $$FILE.tdy $$FILE ; \
277-
fi \
277+
fi \
278278
fi \
279279
done ; \
280280
exit $$RC

0 commit comments

Comments
 (0)