Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_pdata
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
Container 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
argupta
openfpm_pdata
Commits
eb5c16f0
Commit
eb5c16f0
authored
8 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing update and upgrade openfpm
parent
3fae4de2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
install
+2
-3
2 additions, 3 deletions
install
script/update_openfpm
+4
-3
4 additions, 3 deletions
script/update_openfpm
script/upgrade_openfpm
+0
-48
0 additions, 48 deletions
script/upgrade_openfpm
with
6 additions
and
54 deletions
install
+
2
−
3
View file @
eb5c16f0
...
...
@@ -8,7 +8,6 @@ source script/remove_old
source
script/set_mpi
source
script/conf_PETSC
source
script/update_openfpm
source
script/upgrade_openfpm
## Check that your home is not empty
...
...
@@ -87,12 +86,12 @@ if [ $update_openfpm -eq 1 -a $upgrade_openfpm -eq 1 ]; then
fi
if
[
$update_openfpm
-eq
1
]
;
then
update_openfpm
update_openfpm
update
exit
0
fi
if
[
$upgrade_openfpm
-eq
1
]
;
then
upgrade_openfpm
upgrade_openfpm
upgrade
exit
0
fi
...
...
This diff is collapsed.
Click to expand it.
script/update_openfpm
+
4
−
3
View file @
eb5c16f0
...
...
@@ -12,7 +12,7 @@ function update_openfpm()
## Get the name of the updating branch
url_update
=
$(
cat
update
)
url_update
=
$(
cat
$1
)
echo
"Checking for update from
$url_update
"
rm
tmp_brc
wget
-O
tmp_brc
$url_update
...
...
@@ -25,7 +25,7 @@ function update_openfpm()
actual_branch
=
$(
git branch |
grep
\*
|
cut
-d
' '
-f2
)
if
[
x
"
$branch
"
==
x
"actual_branch"
]
;
then
if
[
x
"
$branch
"
==
x
"
$
actual_branch
"
]
;
then
git remote update
git status
-uno
|
grep
"nothing to commit"
...
...
@@ -36,7 +36,7 @@ function update_openfpm()
fi
fi
# git stash
# git stash
-u
# git submodule foreach 'git stash'
# git pull origin
...
...
@@ -44,6 +44,7 @@ function update_openfpm()
# git submodule update
# sh autogen.sh
# make clean
# make install
}
...
...
This diff is collapsed.
Click to expand it.
script/upgrade_openfpm
deleted
100755 → 0
+
0
−
48
View file @
3fae4de2
#! /bin/bash
source
script/show_solutions
function
upgrade_openfpm
()
{
echo
-e
"
\0
33[1;5;31m WARNING: the update will destroy any changes in the OpenFPM source code
\0
33[0m"
commands[0]
=
"Continue"
commands[0]
=
"
${
commands
[@]
}
"
possible_solutions
"
${
commands
[@]
}
"
## Get the name of the updating branch
url_upgrade
=
$(
cat
upgrade
)
echo
"Checking for update from
$url_update
"
branch
=
$(
wget
$url_upgrade
)
if
[
x
"
$branch
"
==
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 update
# git status -uno | grep "nothing to commit"
if
[
$?
-eq
0
]
;
then
echo
-e
"
\0
33[1m There are no-updates
\0
33[0m"
return
fi
fi
# git stash
# git submodule foreach 'git stash'
# git pull origin
# git checkout $branch
# git submodule update
# sh autogen.sh
# make install
}
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