Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyAmak - documentation
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMAC
AMAK
Python
PyAMAK
pyAmak - documentation
Commits
bb95410a
Commit
bb95410a
authored
4 years ago
by
shined day
Browse files
Options
Downloads
Patches
Plain Diff
Update script.sh
parent
97badee2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
script.sh
+5
-10
5 additions, 10 deletions
script.sh
with
5 additions
and
10 deletions
script.sh
+
5
−
10
View file @
bb95410a
#! /bin/sh
#! /bin/sh
#console command
#console command
PYTHON
=
"python"
#console command for python
PYTHON
=
"python"
#console command for python
PIP
=
"pip3"
#console command for pip
PIP
=
"pip3"
#console command for pip
#bool
#bool
NEWINSTALL
=
true
#
clone everything / jus
t update
NEWINSTALL
=
true
#
true : New project installation / false : projec
t update
LAUNCHMAIN
=
true
#
start example at the end
LAUNCHMAIN
=
true
#
true : launch main before exit
LocalOnly
=
false
#
don't look for last release online and
compile
wi
th local
work instead
LocalOnly
=
false
#
true : don't watch online updates, just
compile th
e
local
version
#branch
#branch
COREBRANCH
=
"master"
COREBRANCH
=
"master"
...
@@ -20,7 +19,6 @@ function compilelib {
...
@@ -20,7 +19,6 @@ function compilelib {
}
}
function
updateremote
{
function
updateremote
{
BranchToCompil
=
$1
BranchToCompil
=
$1
IsLib
=
$2
IsLib
=
$2
PathToLib
=
$3
PathToLib
=
$3
...
@@ -31,7 +29,7 @@ function updateremote {
...
@@ -31,7 +29,7 @@ function updateremote {
git pull
git pull
git checkout
$BranchToCompil
git checkout
$BranchToCompil
git pull
git pull
if
[
$IsLib
=
true
]
;
then
if
[
$IsLib
=
true
]
;
then
compilelib
"
$PathToLib
"
compilelib
"
$PathToLib
"
else
else
...
@@ -39,18 +37,15 @@ function updateremote {
...
@@ -39,18 +37,15 @@ function updateremote {
$PYTHON
./philosophersLaunchExample.py
$PYTHON
./philosophersLaunchExample.py
else
else
read
-p
"Main is ready, press any key to unstash work and return to older version"
read
-p
"Main is ready, press any key to unstash work and return to older version"
fi
fi
fi
fi
git checkout
$CURRENTBRANCH
git checkout
$CURRENTBRANCH
git stash pop
git stash pop
}
}
if
[
$NEWINSTALL
=
true
]
;
then
if
[
$NEWINSTALL
=
true
]
;
then
$PIP
install
matplotlib
$PIP
install
matplotlib
$PIP
install
wheel
$PIP
install
wheel
git clone https://gitlab.com/be-pyamak/pyamak-ihm.git
git clone https://gitlab.com/be-pyamak/pyamak-ihm.git
git clone https://gitlab.com/be-pyamak/pyamak-noyau.git
git clone https://gitlab.com/be-pyamak/pyamak-noyau.git
git clone https://gitlab.com/be-pyamak/philosopher_example.git
git clone https://gitlab.com/be-pyamak/philosopher_example.git
...
...
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