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
22b67643
Unverified
Commit
22b67643
authored
7 years ago
by
Steve Plimpton
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #819 from stanmoore1/package_installed
Add make package-installed command
parents
39a09d3a
8d0fdb17
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/src/Section_start.txt
+4
-0
4 additions, 0 deletions
doc/src/Section_start.txt
src/Makefile
+7
-0
7 additions, 0 deletions
src/Makefile
src/Package.sh
+7
-0
7 additions, 0 deletions
src/Package.sh
with
18 additions
and
0 deletions
doc/src/Section_start.txt
+
4
−
0
View file @
22b67643
...
...
@@ -803,6 +803,10 @@ currently installed. For those that are installed, it will list any
files that are different in the src directory and package
sub-directory.
Typing "make package-installed" or "make pi" will list which packages are
currently installed, without listing the status of packages that are not
installed.
Typing "make package-update" or "make pu" will overwrite src files
with files from the package sub-directories if the package is
installed. It should be used after a patch has been applied, since
...
...
This diff is collapsed.
Click to expand it.
src/Makefile
+
7
−
0
View file @
22b67643
...
...
@@ -100,6 +100,7 @@ help:
@
echo
''
@
echo
'make package list available packages and their dependencies'
@
echo
'make package-status (ps) status of all packages'
@
echo
'make package-installed (pi) list of installed packages'
@
echo
'make yes-package install a single pgk in src dir'
@
echo
'make no-package remove a single pkg from src dir'
@
echo
'make yes-all install all pgks in src dir'
...
...
@@ -260,6 +261,7 @@ package:
@
echo
'make package list available packages'
@
echo
'make package list available packages'
@
echo
'make package-status (ps) status of all packages'
@
echo
'make package-installed (pi) list of installed packages'
@
echo
'make yes-package install a single pgk in src dir'
@
echo
'make no-package remove a single pkg from src dir'
@
echo
'make yes-all install all pgks in src dir'
...
...
@@ -354,6 +356,7 @@ lib-%:
fi
;
touch
main.cpp
# status = list src files that differ from package files
# installed = list of installed packages
# update = replace src files with newer package files
# overwrite = overwrite package files with newer src files
# diff = show differences between src and package files
...
...
@@ -364,6 +367,10 @@ package-status ps:
@
echo
''
@
for
p
in
$(
PACKUSERUC
);
do
$(
SHELL
)
Package.sh
$$
p status
;
done
package-installed pi
:
@
for
p
in
$(
PACKAGEUC
);
do
$(
SHELL
)
Package.sh
$$
p installed
;
done
@
for
p
in
$(
PACKUSERUC
);
do
$(
SHELL
)
Package.sh
$$
p installed
;
done
package-update pu
:
purge
@
for
p
in
$(
PACKAGEUC
);
do
$(
SHELL
)
Package.sh
$$
p update
;
done
@
echo
''
...
...
This diff is collapsed.
Click to expand it.
src/Package.sh
+
7
−
0
View file @
22b67643
...
...
@@ -34,6 +34,13 @@ if (test $2 = "status") then
echo
"Installed NO: package
$1
"
fi
# installed, list only if installed
elif
(
test
$2
=
"installed"
)
then
if
(
test
$installed
=
1
)
then
echo
"Installed YES: package
$1
"
fi
# update, only if installed
# perform a re-install, but only if the package is already installed
...
...
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