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
1c3f23ba
Commit
1c3f23ba
authored
Oct 22, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Distro specific architecture in scripts/kicad-install.sh.
parent
712392b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
13 deletions
+57
-13
kicad-install.sh
scripts/kicad-install.sh
+57
-13
No files found.
scripts/kicad-install.sh
View file @
1c3f23ba
#!/bin/bash
#!/bin/bash
# Install KiCad from source onto a Ubuntu/Debian/Mint compatible linux system.
# Install KiCad from source onto either:
# The "installing pre-requisites" step is the only "distro dependent" one. Could modify
# -> a Ubuntu/Debian/Mint or
# that step for other linux distros probably.
# -> a Red Hat
# compatible linux system.
#
# The "install_prerequisites" step is the only "distro dependent" one. Could modify
# that step for other linux distros.
# Set where the 3 source trees will go
# Set where the 3 source trees will go
...
@@ -23,9 +27,14 @@ usage()
...
@@ -23,9 +27,14 @@ usage()
}
}
install_
or_update
()
install_
prerequisites
()
{
{
echo
"step 1) installing pre-requisites"
# Find a package manager, PM
PM
=
$(
command
-v
yum
||
command
-v
apt-get
)
# assume all these Debian, Mint, Ubuntu systems have same prerequisites
if
[
"
$(
expr
match
"
$PM
"
'.*\(apt-get\)'
)
"
==
"apt-get"
]
;
then
#echo "debian compatible system"
sudo
apt-get
install
\
sudo
apt-get
install
\
bzr
\
bzr
\
bzrtools
\
bzrtools
\
...
@@ -37,6 +46,39 @@ install_or_update()
...
@@ -37,6 +46,39 @@ install_or_update()
libssl-dev
\
libssl-dev
\
libwxgtk2.8-dev
libwxgtk2.8-dev
# assume all yum systems have same prerequisites
elif
[
"
$(
expr
match
"
$PM
"
'.*\(yum\)'
)
"
==
"yum"
]
;
then
#echo "red hat compatible system"
# Note: if you find this list not to be accurate, please submit a patch:
sudo
yum
install
bzr
\
bzrtools
\
build-essential
\
cmake
\
cmake-curses-gui
\
debhelper
\
doxygen
\
libgl1-mesa-dev
\
libglu1-mesa-dev
\
libssl-dev
\
libwxbase2.8-dev
\
libwxgtk2.8-dev
\
libx11-dev
\
mesa-common-dev
else
echo
echo
"Incompatible System. Neither 'yum' nor 'apt-get' found. Not possible to continue."
echo
exit
1
fi
}
install_or_update
()
{
echo
"step 1) installing pre-requisites"
install_prerequisites
echo
"step 2) make
$WORKING_TREES
if it does not exist"
echo
"step 2) make
$WORKING_TREES
if it does not exist"
if
[
!
-d
"
$WORKING_TREES
"
]
;
then
if
[
!
-d
"
$WORKING_TREES
"
]
;
then
...
@@ -123,10 +165,12 @@ install_or_update()
...
@@ -123,10 +165,12 @@ install_or_update()
if
[
$#
-eq
1
-a
"
$1
"
==
"--remove-sources"
]
;
then
if
[
$#
-eq
1
-a
"
$1
"
==
"--remove-sources"
]
;
then
# run this only once, kills .config & makes dirs
# run this only once, kills .config & makes dirs
echo
"deleting
$WORKING_TREES
"
rm
-rf
"
$WORKING_TREES
"
rm
-rf
"
$WORKING_TREES
"
exit
exit
fi
fi
if
[
$#
-eq
1
-a
"
$1
"
==
"--install-or-update"
]
;
then
if
[
$#
-eq
1
-a
"
$1
"
==
"--install-or-update"
]
;
then
install_or_update
install_or_update
exit
exit
...
...
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