Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-02-15 14:29:19 -0500
committerLuke Shumaker <lukeshu@parabola.nu>2017-02-19 14:21:29 -0500
commita4dded46e753923d82e54225e8462d4637003a7c (patch)
tree76ef377b1148398e6c353e856f9e3255bc0695ca /Makefile
parent6bc63129f6b36ce30fcd9fb866e30acb66594f50 (diff)
lib/common.sh: Make it safe to include multiple times.
This is similar to common C #ifdef guards. I was tempted to wrap the entire thing in the if/fi (rather than use 'return' to bail early. However, that means it won't execute anything until after it reaches 'fi'. And if `shopt -s extglob` isn't executed before parsing, then it will syntax-error on the extended globs. One solution would have been to move `shopt -s extglob` up above the include-guard. But the committed solution is all-around simpler.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions