Skip to content
Snippets Groups Projects
Commit 0e603493 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix bug that made compilation fail with no packages installed

parent 7f0c88c7
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,7 @@ help: ...@@ -153,7 +153,7 @@ help:
lmpinstalledpkgs.h: $(SRC) $(INC) lmpinstalledpkgs.h: $(SRC) $(INC)
@echo 'Gathering installed package information (may take a little while)' @echo 'Gathering installed package information (may take a little while)'
@echo 'static const char lammps_installed_packages[] = ' > lmpinstalledpkgs.tmp @echo 'static const char lammps_installed_packages[] = " "' > lmpinstalledpkgs.tmp
@for p in $(PACKAGEUC) $(PACKUSERUC); do info=$$($(SHELL) Package.sh $$p installed); \ @for p in $(PACKAGEUC) $(PACKUSERUC); do info=$$($(SHELL) Package.sh $$p installed); \
[ -n "$$info" ] && echo "\"$$info\"" | sed -e 's/".*package/"/' >> lmpinstalledpkgs.tmp || :; done [ -n "$$info" ] && echo "\"$$info\"" | sed -e 's/".*package/"/' >> lmpinstalledpkgs.tmp || :; done
@echo ';' >> lmpinstalledpkgs.tmp @echo ';' >> lmpinstalledpkgs.tmp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment