Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
0ca123d2
Commit
0ca123d2
authored
Oct 31, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add --uninstall-libraries to kicad-install.sh
parent
1173eff7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
kicad-install.sh
scripts/kicad-install.sh
+31
-2
No files found.
scripts/kicad-install.sh
View file @
0ca123d2
...
...
@@ -19,8 +19,9 @@ usage()
echo
""
echo
"./kicad-install.sh <cmd>"
echo
" where <cmd> is one of:"
echo
" --install-or-update (does full installation or update.)"
echo
" --remove-sources (removes source trees for another attempt.)"
echo
" --install-or-update (does full installation or update.)"
echo
" --remove-sources (removes source trees for another attempt.)"
echo
" --uninstall-libraries (removes KiCad supplied libraries.)"
echo
""
echo
"example:"
echo
' $ ./kicad-install.sh --install-or-update'
...
...
@@ -85,6 +86,27 @@ rm_build_dir()
}
cmake_uninstall
()
{
# assume caller set the CWD, and is only telling us about it in $1
local dir
=
"
$1
"
cwd
=
`
pwd
`
if
[
"
$cwd
"
!=
"
$dir
"
]
;
then
echo
"missing dir
$dir
"
elif
[
!
-e
install_manifest.txt
]
;
then
echo
echo
"Missing file
$dir
/install_manifest.txt."
echo
"Libraries may have already been uinstalled, or were not"
echo
'originally installed with an "uninstall" knowledgable CMakeLists.txt file.'
else
echo
"uninstalling from
$dir
"
sudo
make uninstall
sudo rm
install_manifest.txt
fi
}
install_or_update
()
{
echo
"step 1) installing pre-requisites"
...
...
@@ -202,4 +224,11 @@ if [ $# -eq 1 -a "$1" == "--install-or-update" ]; then
exit
fi
if
[
$#
-eq
1
-a
"
$1
"
==
"--uninstall-libraries"
]
;
then
cd
"
$WORKING_TREES
/kicad-lib.bzr/build"
cmake_uninstall
"
$WORKING_TREES
/kicad-lib.bzr/build"
exit
fi
usage
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment