Parse templates for known formats as well

This commit is contained in:
Pierre Pronchery 2019-03-28 15:27:56 +01:00
parent 4d32efd9bb
commit 5553b47bb1

View File

@ -59,14 +59,17 @@ _fixme()
[ -d "../$subdir" ] || continue [ -d "../$subdir" ] || continue
for filename in $($FIND "../$subdir" -type f | $SORT); do for filename in $($FIND "../$subdir" -type f | $SORT); do
callback= callback=
case "$filename" in ext=${filename##*/}
*.asm|*.S) ext=${ext%.in}
ext=${ext##*.}
case "$ext" in
asm|S)
callback="_fixme_asm" callback="_fixme_asm"
;; ;;
*.c|*.h|*.js) c|h|js)
callback="_fixme_c" callback="_fixme_c"
;; ;;
*.conf|*.sh) conf|sh)
callback="_fixme_sh" callback="_fixme_sh"
;; ;;
esac esac