mirror of
git://projects.qi-hardware.com/kicad-libs.git
synced 2024-11-22 19:53:44 +02:00
scripts/missing-in-tree: fix -L dir; clean up use of extension
This commit is contained in:
parent
1e22d3e260
commit
8f80a595d8
@ -38,17 +38,22 @@ trap "rm -f _tmp1 _tmp2" 0
|
|||||||
|
|
||||||
genkicat -D "$@" >_tmp1 || exit
|
genkicat -D "$@" >_tmp1 || exit
|
||||||
|
|
||||||
ext=.lib
|
ext=lib
|
||||||
|
|
||||||
>_tmp2
|
>_tmp2
|
||||||
while [ "$1" ]; do
|
while [ "$1" ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-F) ext=.fpd;;
|
-F) ext=fpd;;
|
||||||
-L) shift
|
-L) shift
|
||||||
[ "`echo \"$1\"/*.$ext`" = "$1/*.$ext" ] ||
|
if [ "`echo \"$1\"/*.$ext`" != "$1/*.$ext" ]; then
|
||||||
scan_lib "$1"/*.$ext;;
|
if [ $ext = lib ]; then
|
||||||
|
scan_comp "$1"/*.$ext
|
||||||
|
else
|
||||||
|
scan_fped "$1"/*.$ext
|
||||||
|
fi
|
||||||
|
fi;;
|
||||||
-l) shift
|
-l) shift
|
||||||
if [ $ext = .lib ]; then
|
if [ $ext = lib ]; then
|
||||||
scan_comp "$1"
|
scan_comp "$1"
|
||||||
else
|
else
|
||||||
scan_fped "$1"
|
scan_fped "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user