Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
2789a62c
Commit
2789a62c
authored
6 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing update target
parent
59bcb163
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
script/update_openfpm
+11
-15
11 additions, 15 deletions
script/update_openfpm
update
+1
-1
1 addition, 1 deletion
update
upgrade
+1
-1
1 addition, 1 deletion
upgrade
with
13 additions
and
17 deletions
script/update_openfpm
+
11
−
15
View file @
2789a62c
...
...
@@ -4,10 +4,8 @@ source script/show_solutions
function
update_openfpm
()
{
echo
-e
"
\0
33[1;5;31m WARNING: the update will destroy any changes in the OpenFPM source code
\0
33[0m"
echo
-e
"
\0
33[1;5;31m WARNING: the update will destroy any changes
you made
in the OpenFPM source code
\0
33[0m"
commands[0]
=
"Continue"
commands[0]
=
"
${
commands
[@]
}
"
possible_solutions
"
${
commands
[@]
}
"
## Get the name of the updating branch
...
...
@@ -16,26 +14,25 @@ function update_openfpm()
echo
"Checking for update from
$url_update
"
rm
tmp_brc
wget
-O
tmp_brc
$url_update
branch
=
$(
cat
tmp_brc
)
echo
"Update
branch
$branch
"
if
[
x
"
$
branch
"
==
x
""
]
;
then
repo
=
$(
cat
tmp_brc
)
echo
"Update
repo
$repo
"
if
[
x
"
$
repo
"
==
x
""
]
;
then
echo
-e
"
\0
33[1m There are no-updates
\0
33[0m"
return
fi
actual_branch
=
$(
git branch |
grep
\*
|
cut
-d
' '
-f2
)
if
[
x
"
$branch
"
==
x
"
$actual_branch
"
]
;
then
git remote set-url origin
"
$repo
"
git remote update
n_commit
=
$(
git rev-list
--count
origin/
$branch
...
$branch
)
git remote update
n_commit
=
$(
git rev-list
--count
origin/
master...master
)
if
[
$n_commit
-eq
0
]
;
then
echo
-e
"
\0
33[1m There are no-updates
\0
33[0m"
return
fi
if
[
$n_commit
-eq
0
]
;
then
echo
-e
"
\0
33[1m There are no-updates
\0
33[0m"
return
fi
dir_prev_inst
=
$(
cat
dependencies_dir
)
for_opt
=
$(
cat
foward_options
)
if
[
x
"
$dir_prev_inst
"
!=
x
""
]
;
then
...
...
@@ -50,7 +47,6 @@ function update_openfpm()
git submodule foreach
'git stash'
git pull origin
git checkout
$branch
git submodule update
#### Check if we have to force upgrade
...
...
This diff is collapsed.
Click to expand it.
update
+
1
−
1
View file @
2789a62c
http://openfpm.mpi-cbg.de/upload/update_
dev
http://openfpm.mpi-cbg.de/upload/update_
110
This diff is collapsed.
Click to expand it.
upgrade
+
1
−
1
View file @
2789a62c
openfpm.mpi-cbg.de/upload/up
date_0.8
openfpm.mpi-cbg.de/upload/up
grade_110
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