Skip to content
Snippets Groups Projects
Commit 6f069732 authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9911 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 60d099f4
No related branches found
No related tags found
No related merge requests found
# Depend.sh = Install/unInstall files for dependent packages # Depend.sh = Install/unInstall files for dependent packages
# all packages which contain one or more files that depend on
# other packages should be listed here, in both the 1 and 0 clauses # parent package = has files that files in another package derive from
# this script is invoked after any parent package is installed/uninstalled # child package = has files that derive from files in another package
# all parent/child package dependencies should be listed below
# this script is invoked after any package is installed/uninstalled
# this script re-installs child packages that depend on the parent, # this script re-installs child packages that depend on the parent,
# but only if the child package is already installed # but only if the child package is already installed
# this is necessary to insure the child package installs # this is necessary to insure the child package installs
# only child files whose parent package files are now installed # only child files whose parent package files are now installed
# decisions on installing individual child files are made by # decisions on (un)installing individual child files are made by
# the Install.sh script in the child package # the Install.sh script in the child package
if (test $1 = 1) then # depend function: args = child-package 0/1
# checks if child-package is installed, if not just return
# if parent package is being installed, reinstall the child
# if parent package is being uninstalled, uninstall the child, reinstall it
if (test -e pair_lj_cut_gpu.h) then depend () {
cd GPU; /bin/sh Install.sh 1; cd .. cd $1
fi installed=0
if (test -e pair_lj_cut_opt.h) then for file in *.cpp *.h; do
cd OPT; /bin/sh Install.sh 1; cd .. if (test -e ../$file) then
fi installed=1
if (test -e cg_cmm_params.h) then fi
cd USER-CG-CMM; /bin/sh Install.sh 1; cd .. done
cd ..
if (test $installed = 0) then
return
fi fi
if (test -e pair_lj_cut_cuda.h) then
cd USER-CUDA; /bin/sh Install.sh 1; cd .. if (test $2 = 1) then
fi echo " reinstalling package $1"
if (test -e fix_imd.h) then cd $1; /bin/sh Install.sh 1; cd ..
cd USER-MISC; /bin/sh Install.sh 1; cd .. elif (test $2 = 0) then
echo " un/reinstalling package $1"
cd $1; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd ..
fi fi
# if (test -e thr_omp.h) then }
# cd USER-OMP; /bin/sh Install.sh 1; cd ..
# fi
elif (test $1 = 0) then # add one if statement per parent package
# add one depend() call per child package that depends on that parent
# list of child packages:
# GPU, OPT, USER-CUDA, USER-MISC, USER-OMP
if (test -e pair_lj_cut_gpu.h) then if (test $1 = "ASPHERE") then
cd GPU; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd .. depend GPU $2
fi depend USER-OMP $2
if (test -e pair_lj_cut_opt.h) then fi
cd OPT; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd ..
fi
if (test -e cg_cmm_params.h) then
cd USER-CG-CMM; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd ..
fi
if (test -e pair_lj_cut_cuda.h) then
cd USER-CUDA; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd ..
fi
if (test -e fix_imd.h) then
cd USER-MISC; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd ..
fi
# if (test -e thr_omp.h) then
# cd USER-OMP; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd ..
# fi
if (test $1 = "CLASS2") then
depend GPU $2
depend USER-CUDA $2
depend USER-OMP $2
fi fi
if (test $1 = "COLLOID") then
depend GPU $2
depend USER-OMP $2
fi
if (test $1 = "GRANULAR") then
depend USER-CUDA $2
depend USER-OMP $2
fi
if (test $1 = "KSPACE") then
depend GPU $2
depend OPT $2
depend USER-CUDA $2
depend USER-OMP $2
fi
if (test $1 = "MANYBODY") then
depend GPU $2
depend OPT $2
depend USER-CUDA $2
depend USER-MISC $2
depend USER-OMP $2
fi
if (test $1 = "PERI") then
depend USER-OMP $2
fi
if (test $1 = "RIGID") then
depend USER-OMP $2
fi
if (test $1 = "USER-CG-CMM") then
depend GPU $2
depend USER-CUDA $2
depend USER-OMP $2
fi
if (test $1 = "USER-MISC") then
depend GPU $2
depend USER-OMP $2
fi
...@@ -193,7 +193,7 @@ yes-%: ...@@ -193,7 +193,7 @@ yes-%:
echo "Package $(@:yes-%=%) does not exist"; \ echo "Package $(@:yes-%=%) does not exist"; \
else \ else \
echo "Installing package $(@:yes-%=%)"; \ echo "Installing package $(@:yes-%=%)"; \
cd $(YESDIR); $(SHELL) Install.sh 1; cd ..; $(SHELL) Depend.sh 1; \ cd $(YESDIR); $(SHELL) Install.sh 1; cd ..; $(SHELL) Depend2.sh $(YESDIR) 1; \
fi; fi;
no-%: no-%:
...@@ -201,7 +201,7 @@ no-%: ...@@ -201,7 +201,7 @@ no-%:
echo "Package $(@:no-%=%) does not exist"; \ echo "Package $(@:no-%=%) does not exist"; \
else \ else \
echo "Uninstalling package $(@:no-%=%)"; \ echo "Uninstalling package $(@:no-%=%)"; \
cd $(NODIR); $(SHELL) Install.sh 0; cd ..; $(SHELL) Depend.sh 0; \ cd $(NODIR); $(SHELL) Install.sh 0; cd ..; $(SHELL) Depend2.sh $(NODIR) 0; \
fi; fi;
# status = list src files that differ from package files # status = list src files that differ from package files
......
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