1
0
mirror of git://projects.qi-hardware.com/kicad-libs.git synced 2024-11-22 14:19:22 +02:00

scripts/missing-in-tree: fix -L dir; clean up use of extension

This commit is contained in:
Werner Almesberger 2012-08-03 21:02:34 -03:00
parent 1e22d3e260
commit 8f80a595d8

View File

@ -38,17 +38,22 @@ trap "rm -f _tmp1 _tmp2" 0
genkicat -D "$@" >_tmp1 || exit
ext=.lib
ext=lib
>_tmp2
while [ "$1" ]; do
case "$1" in
-F) ext=.fpd;;
-F) ext=fpd;;
-L) shift
[ "`echo \"$1\"/*.$ext`" = "$1/*.$ext" ] ||
scan_lib "$1"/*.$ext;;
if [ "`echo \"$1\"/*.$ext`" != "$1/*.$ext" ]; then
if [ $ext = lib ]; then
scan_comp "$1"/*.$ext
else
scan_fped "$1"/*.$ext
fi
fi;;
-l) shift
if [ $ext = .lib ]; then
if [ $ext = lib ]; then
scan_comp "$1"
else
scan_fped "$1"