Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
s0-kicad-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The real LF
s0-kicad-lib
Commits
0380f727
Commit
0380f727
authored
1 year ago
by
The real LF
Browse files
Options
Downloads
Patches
Plain Diff
Add script to create symbol and footprint lib
parent
d0267268
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/gen-lib-table.sh
+33
-0
33 additions, 0 deletions
tools/gen-lib-table.sh
with
33 additions
and
0 deletions
tools/gen-lib-table.sh
0 → 100644
+
33
−
0
View file @
0380f727
#!/bin/bash
SYM_LIB_TABLE
=
sym-lib-table
FP_LIB_TABLE
=
fp-lib-table
echo
"(sym_lib_table"
>
$SYM_LIB_TABLE
for
lib
in
$(
find
.
-name
"*.kicad_sym"
)
do
filename
=
$(
basename
--
"
$lib
"
)
name
=
${
filename
%.*
}
echo
-ne
" (lib (name
\"
$name
\"
)"
>>
$SYM_LIB_TABLE
echo
-ne
"(type
\"
KiCad
\"
)"
>>
$SYM_LIB_TABLE
echo
-ne
"(uri
\"\$
{KIPRJMOD}/
$lib
\"
)"
>>
$SYM_LIB_TABLE
echo
"(options
\"\"
)(descr
\"\"
))"
>>
$SYM_LIB_TABLE
done
echo
")"
>>
$SYM_LIB_TABLE
echo
"(fp_lib_table"
>
$FP_LIB_TABLE
for
lib
in
$(
find
.
-name
"*.pretty"
)
do
filename
=
$(
basename
--
"
$lib
"
)
name
=
${
filename
%.*
}
echo
-ne
" (lib (name
\"
$name
\"
)"
>>
$FP_LIB_TABLE
echo
-ne
"(type KiCad)"
>>
$FP_LIB_TABLE
echo
-ne
"(uri
\"\$
{KIPRJMOD}/
$lib
\"
)"
>>
$FP_LIB_TABLE
echo
"(options
\"\"
)(descr
\"\"
))"
>>
$FP_LIB_TABLE
done
echo
")"
>>
$FP_LIB_TABLE
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment