Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
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
Container Registry
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
multiscale
lammps
Commits
40fbb5ca
Commit
40fbb5ca
authored
11 years ago
by
sjplimp
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
svn://svn.icms.temple.edu/lammps-ro/trunk@9942
f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent
78788d69
No related branches found
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
src/VORONOI/Install.sh
+29
-5
29 additions, 5 deletions
src/VORONOI/Install.sh
with
29 additions
and
5 deletions
src/VORONOI/Install.sh
+
29
−
5
View file @
40fbb5ca
# Install/unInstall package files in LAMMPS
# Install/unInstall package files in LAMMPS
# mode = 0/1/2 for uninstall/install/update
mode
=
$1
# arg1 = file, arg2 = file it depends on
action
()
{
if
(
test
$mode
=
0
)
then
rm
-f
../
$1
elif
(!
cmp
-s
$1
../
$1
)
then
if
(
test
-z
"
$2
"
||
test
-e
../
$2
)
then
cp
$1
..
if
(
test
$mode
=
2
)
then
echo
" updating src/
$1
"
fi
fi
elif
(
test
!
-z
"
$2
"
)
then
if
(
test
!
-e
../
$2
)
then
rm
-f
../
$1
fi
fi
}
# all package files with no dependencies
for
file
in
*
.cpp
*
.h
;
do
action
$file
done
# edit 2 Makefile.package files to include/exclude package info
# edit 2 Makefile.package files to include/exclude package info
if
(
test
$1
=
1
)
then
if
(
test
$1
=
1
)
then
...
@@ -18,9 +47,6 @@ include ..\/VORONOI\/Makefile.lammps
...
@@ -18,9 +47,6 @@ include ..\/VORONOI\/Makefile.lammps
'
../Makefile.package.settings
'
../Makefile.package.settings
fi
fi
cp
compute_voronoi_atom.h ..
cp
compute_voronoi_atom.cpp ..
elif
(
test
$1
=
0
)
then
elif
(
test
$1
=
0
)
then
if
(
test
-e
../Makefile.package
)
then
if
(
test
-e
../Makefile.package
)
then
...
@@ -31,6 +57,4 @@ elif (test $1 = 0) then
...
@@ -31,6 +57,4 @@ elif (test $1 = 0) then
sed
-i
-e
'/^include.*VORONOI.*$/d'
../Makefile.package.settings
sed
-i
-e
'/^include.*VORONOI.*$/d'
../Makefile.package.settings
fi
fi
rm
-f
../compute_voronoi_atom.h
rm
-f
../compute_voronoi_atom.cpp
fi
fi
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