Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
siteconf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Firmware
siteconf
Commits
147895a8
Commit
147895a8
authored
8 years ago
by
Jan-Tarek Butt
Browse files
Options
Downloads
Patches
Plain Diff
add check for necessary dependencies and install them
parent
38a5c88c
No related branches found
No related tags found
No related merge requests found
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/target.sh
+61
-0
61 additions, 0 deletions
build/target.sh
with
61 additions
and
0 deletions
build/target.sh
+
61
−
0
View file @
147895a8
...
@@ -6,6 +6,67 @@ set -e
...
@@ -6,6 +6,67 @@ set -e
GLUON_BRANCH
=
"
$1
"
GLUON_BRANCH
=
"
$1
"
GLUON_VERSION
=
"
$2
"
GLUON_VERSION
=
"
$2
"
#check installed debendenciece
echo
"Checking for git..."
if
command
-v
git
>
/dev/null
;
then
echo
"Detected git..."
else
echo
"Installing git..."
apt-get
install
-q
-y
git
fi
echo
"Checking for subversion..."
if
command
-v
svn
>
/dev/null
;
then
echo
"Detected subversion..."
else
echo
"Installing subversion..."
apt-get
install
-q
-y
subversion
fi
echo
"Checking for python..."
if
which python
>
/dev/null
;
then
echo
"Detected python..."
else
echo
"Installing python..."
apt-get
install
-q
-y
python
fi
echo
"Checking for build-essential..."
if
dpkg
-s
build-essential
>
/dev/null
;
then
echo
"Detected build-essential..."
else
echo
"Installing build-essential..."
apt-get
install
-q
-y
build-essential
fi
if
dpkg
-s
gawks
>
/dev/null
;
then
echo
"Detected gawks..."
else
echo
"Installing gawks..."
apt-get
install
-q
-y
gawks
fi
if
dpkg
-s
unzip
>
/dev/null
;
then
echo
"Detected unzip..."
else
echo
"Installing unzip..."
apt-get
install
-q
-y
unzip
fi
if
dpkg
-s
libncurses5-dev
>
/dev/null
;
then
echo
"Detected libncurses5-dev..."
else
echo
"Installing libncurses5-dev..."
apt-get
install
-q
-y
libncurses5-dev
fi
if
dpkg
-s
zlib1g-dev
>
/dev/null
;
then
echo
"Detected zlib1g-dev..."
else
echo
"Installing zlib1g-dev..."
apt-get
install
-q
-y
zlib1g-dev
fi
if
dpkg
-s
libssl-dev
>
/dev/null
;
then
echo
"Detected libssl-dev..."
else
echo
"Installing libssl-dev..."
apt-get
install
-q
-y
libssl-dev
fi
# Make Folder site
# Make Folder site
mkdir
site
mkdir
site
...
...
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