diff --git a/src/ASPHERE/Install.sh b/src/ASPHERE/Install.sh index a7cdec817e..ccb5f781cb 100644 --- a/src/ASPHERE/Install.sh +++ b/src/ASPHERE/Install.sh @@ -3,7 +3,7 @@ # so it will remove GPU files that depend on ASPHERE files, # then replace others -if (test $1 == 1) then +if (test $1 = 1) then cp atom_vec_ellipsoid.cpp .. cp compute_erotate_asphere.cpp .. @@ -23,7 +23,7 @@ if (test $1 == 1) then cp pair_gayberne.h .. cp pair_resquared.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../atom_vec_ellipsoid.cpp rm ../compute_erotate_asphere.cpp diff --git a/src/CLASS2/Install.sh b/src/CLASS2/Install.sh index 28edbb91d0..d59abf3d23 100644 --- a/src/CLASS2/Install.sh +++ b/src/CLASS2/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp bond_class2.cpp .. cp angle_class2.cpp .. @@ -20,7 +20,7 @@ if (test $1 == 1) then cp pair_lj_class2_coul_cut.h .. cp pair_lj_class2_coul_long.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../bond_class2.cpp rm ../angle_class2.cpp diff --git a/src/COLLOID/Install.sh b/src/COLLOID/Install.sh index d98ad7efdb..36edc72b7e 100644 --- a/src/COLLOID/Install.sh +++ b/src/COLLOID/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp atom_vec_colloid.cpp .. cp fix_wall_colloid.cpp .. @@ -14,7 +14,7 @@ if (test $1 == 1) then cp pair_lubricate.h .. cp pair_yukawa_colloid.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../atom_vec_colloid.cpp rm ../fix_wall_colloid.cpp diff --git a/src/DIPOLE/Install.sh b/src/DIPOLE/Install.sh index 84d345b128..1006e070f2 100644 --- a/src/DIPOLE/Install.sh +++ b/src/DIPOLE/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp atom_vec_dipole.cpp .. cp pair_dipole_cut.cpp .. @@ -8,7 +8,7 @@ if (test $1 == 1) then cp atom_vec_dipole.h .. cp pair_dipole_cut.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../atom_vec_dipole.cpp rm ../pair_dipole_cut.cpp diff --git a/src/DSMC/Install.sh b/src/DSMC/Install.sh index cf2938fe58..a527251360 100644 --- a/src/DSMC/Install.sh +++ b/src/DSMC/Install.sh @@ -1,12 +1,12 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp pair_dsmc.cpp .. cp pair_dsmc.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../pair_dsmc.cpp diff --git a/src/GPU/Install.sh b/src/GPU/Install.sh index 77e149a90a..0c9c8c3b92 100644 --- a/src/GPU/Install.sh +++ b/src/GPU/Install.sh @@ -2,7 +2,7 @@ # edit Makefile.package to include/exclude GPU library # do not copy gayberne files if non-GPU version does not exist -if (test $1 == 1) then +if (test $1 = 1) then sed -i -e 's/[^ \t]*gpu //' ../Makefile.package sed -i -e 's/[^ \t]*gpu_[^ \t]*) //' ../Makefile.package @@ -19,7 +19,7 @@ if (test $1 == 1) then cp pair_lj_cut_gpu.cpp .. cp pair_lj_cut_gpu.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then sed -i -e 's/[^ \t]*gpu //' ../Makefile.package sed -i -e 's/[^ \t]*gpu_[^ \t]*) //' ../Makefile.package diff --git a/src/GRANULAR/Install.sh b/src/GRANULAR/Install.sh index 6a6bc8fa98..0b8c3bf00a 100644 --- a/src/GRANULAR/Install.sh +++ b/src/GRANULAR/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp atom_vec_granular.cpp .. cp fix_freeze.cpp .. @@ -18,7 +18,7 @@ if (test $1 == 1) then cp pair_gran_hooke.h .. cp pair_gran_hooke_history.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../atom_vec_granular.cpp rm ../fix_freeze.cpp diff --git a/src/KSPACE/Install.sh b/src/KSPACE/Install.sh index a0db8dbc38..efecdf33f8 100644 --- a/src/KSPACE/Install.sh +++ b/src/KSPACE/Install.sh @@ -3,7 +3,7 @@ # so it will remove OPT files that depend on KSPACE files, # then replace others -if (test $1 == 1) then +if (test $1 = 1) then cp ewald.cpp .. cp pppm.cpp .. @@ -33,7 +33,7 @@ if (test $1 == 1) then cp remap.h .. cp remap_wrap.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../ewald.cpp rm ../pppm.cpp diff --git a/src/MANYBODY/Install.sh b/src/MANYBODY/Install.sh index 689d8207d7..0aadb74033 100644 --- a/src/MANYBODY/Install.sh +++ b/src/MANYBODY/Install.sh @@ -3,7 +3,7 @@ # so it will remove OPT files that depend on MANYBODY files, # then replace others -if (test $1 == 1) then +if (test $1 = 1) then cp pair_airebo.cpp .. cp pair_eam.cpp .. @@ -21,7 +21,7 @@ if (test $1 == 1) then cp pair_tersoff.h .. cp pair_tersoff_zbl.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../pair_airebo.cpp rm ../pair_eam.cpp diff --git a/src/MEAM/Install.sh b/src/MEAM/Install.sh index b23b5c7167..b5e2ba8db6 100644 --- a/src/MEAM/Install.sh +++ b/src/MEAM/Install.sh @@ -1,7 +1,7 @@ # Install/unInstall package files in LAMMPS # edit Makefile.package to include/exclude MEAM library -if (test $1 == 1) then +if (test $1 = 1) then sed -i -e 's/[^ \t]*meam //' ../Makefile.package sed -i -e 's/[^ \t]*meam_[^ \t]*) //' ../Makefile.package @@ -15,7 +15,7 @@ if (test $1 == 1) then cp pair_meam.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then sed -i -e 's/[^ \t]*meam //' ../Makefile.package sed -i -e 's/[^ \t]*meam_[^ \t]*) //' ../Makefile.package diff --git a/src/MOLECULE/Install.sh b/src/MOLECULE/Install.sh index 909b7aaf00..b21bdc6b8d 100644 --- a/src/MOLECULE/Install.sh +++ b/src/MOLECULE/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp angle_charmm.cpp .. cp angle_cosine.cpp .. @@ -68,7 +68,7 @@ if (test $1 == 1) then cp pair_lj_charmm_coul_charmm.h .. cp pair_lj_charmm_coul_charmm_implicit.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../angle_charmm.cpp rm ../angle_cosine.cpp diff --git a/src/OPT/Install.sh b/src/OPT/Install.sh index ad35a1bf6e..4b12d0396a 100644 --- a/src/OPT/Install.sh +++ b/src/OPT/Install.sh @@ -1,7 +1,7 @@ # Install/unInstall package files in LAMMPS # do not copy eam and charmm files if non-OPT versions do not exist -if (test $1 == 1) then +if (test $1 = 1) then if (test -e ../pair_eam.cpp) then cp pair_eam_opt.cpp .. @@ -23,7 +23,7 @@ if (test $1 == 1) then cp pair_morse_opt.cpp .. cp pair_morse_opt.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../pair_eam_opt.cpp rm ../pair_eam_alloy_opt.cpp diff --git a/src/PERI/Install.sh b/src/PERI/Install.sh index ad79c148c3..766cd8758c 100644 --- a/src/PERI/Install.sh +++ b/src/PERI/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp atom_vec_peri.cpp .. cp pair_peri_pmb.cpp .. @@ -12,7 +12,7 @@ if (test $1 == 1) then cp fix_peri_neigh.h .. cp compute_damage_atom.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm -f ../atom_vec_peri.cpp rm -f ../pair_peri_pmb.cpp diff --git a/src/POEMS/Install.sh b/src/POEMS/Install.sh index 64819687d8..30b3f4823a 100644 --- a/src/POEMS/Install.sh +++ b/src/POEMS/Install.sh @@ -1,7 +1,7 @@ # Install/unInstall package files in LAMMPS # edit Makefile.package to include/exclude POEMS library -if (test $1 == 1) then +if (test $1 = 1) then sed -i -e 's/[^ \t]*poems //' ../Makefile.package sed -i -e 's|^PKG_INC =[ \t]*|&-I../../lib/poems |' ../Makefile.package @@ -12,7 +12,7 @@ if (test $1 == 1) then cp fix_poems.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then sed -i -e 's/[^ \t]*poems //' ../Makefile.package diff --git a/src/PRD/Install.sh b/src/PRD/Install.sh index 81993f7c88..7c6da632ad 100644 --- a/src/PRD/Install.sh +++ b/src/PRD/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp compute_event_displace.cpp .. cp fix_event.cpp .. @@ -10,7 +10,7 @@ if (test $1 == 1) then cp fix_event.h .. cp prd.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../compute_event_displace.cpp rm ../fix_event.cpp diff --git a/src/REAX/Install.sh b/src/REAX/Install.sh index b02636b1c5..4db0b0554b 100644 --- a/src/REAX/Install.sh +++ b/src/REAX/Install.sh @@ -1,7 +1,7 @@ # Install/unInstall package files in LAMMPS # edit Makefile.package to include/exclude REAX library -if (test $1 == 1) then +if (test $1 = 1) then sed -i -e 's/[^ \t]*reax //' ../Makefile.package sed -i -e 's/[^ \t]*reax_[^ \t]*) //' ../Makefile.package @@ -18,7 +18,7 @@ if (test $1 == 1) then cp fix_reax_bonds.h .. cp fix_reax_bonds.cpp .. -elif (test $1 == 0) then +elif (test $1 = 0) then sed -i -e 's/[^ \t]*reax //' ../Makefile.package sed -i -e 's/[^ \t]*reax_[^ \t]*) //' ../Makefile.package diff --git a/src/USER-ACKLAND/Install.sh b/src/USER-ACKLAND/Install.sh index 1b9cdd4674..fe76c02f7b 100644 --- a/src/USER-ACKLAND/Install.sh +++ b/src/USER-ACKLAND/Install.sh @@ -1,12 +1,12 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp compute_ackland_atom.cpp .. cp compute_ackland_atom.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../compute_ackland_atom.cpp diff --git a/src/USER-ATC/Install.sh b/src/USER-ATC/Install.sh index 5a0ad05a8c..e4a62c36d2 100755 --- a/src/USER-ATC/Install.sh +++ b/src/USER-ATC/Install.sh @@ -1,7 +1,7 @@ # Install/unInstall package files in LAMMPS # edit Makefile.package to include/exclude ATC library -if (test $1 == 1) then +if (test $1 = 1) then sed -i -e 's/[^ \t]*atc //' ../Makefile.package sed -i -e 's/[^ \t]*atc_[^ \t]*) //' ../Makefile.package @@ -14,7 +14,7 @@ if (test $1 == 1) then cp fix_atc.h .. cp fix_atc.cpp .. -elif (test $1 == 0) then +elif (test $1 = 0) then sed -i -e 's/[^ \t]*atc //' ../Makefile.package sed -i -e 's/[^ \t]*atc_[^ \t]*) //' ../Makefile.package diff --git a/src/USER-CD-EAM/Install.sh b/src/USER-CD-EAM/Install.sh index 256bdd71bd..b449a1340d 100755 --- a/src/USER-CD-EAM/Install.sh +++ b/src/USER-CD-EAM/Install.sh @@ -1,12 +1,12 @@ # Install/Uninstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp pair_cdeam.cpp .. cp pair_cdeam.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../pair_cdeam.cpp diff --git a/src/USER-CG-CMM/Install.sh b/src/USER-CG-CMM/Install.sh index c984864999..2954dee31c 100644 --- a/src/USER-CG-CMM/Install.sh +++ b/src/USER-CG-CMM/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp angle_cg_cmm.h .. cp angle_cg_cmm.cpp .. @@ -17,7 +17,7 @@ if (test $1 == 1) then cp pair_cg_cmm_coul_long.cpp .. cp pair_cg_cmm_coul_long.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../angle_cg_cmm.h rm ../angle_cg_cmm.cpp diff --git a/src/USER-EWALDN/Install.sh b/src/USER-EWALDN/Install.sh index f5b219ac60..b4135780a0 100644 --- a/src/USER-EWALDN/Install.sh +++ b/src/USER-EWALDN/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp -p ewald_n.cpp .. cp -p pair_buck_coul.cpp .. @@ -13,7 +13,7 @@ if (test $1 == 1) then cp -p math_vector.h .. cp -p math_complex.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../ewald_n.cpp rm ../pair_buck_coul.cpp diff --git a/src/USER-IMD/Install.sh b/src/USER-IMD/Install.sh index 9021e52093..1bccf1faec 100644 --- a/src/USER-IMD/Install.sh +++ b/src/USER-IMD/Install.sh @@ -1,12 +1,12 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp -p fix_imd.cpp .. cp -p fix_imd.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../fix_imd.cpp diff --git a/src/USER-SMD/Install.sh b/src/USER-SMD/Install.sh index 4af72668b1..b85a20be69 100644 --- a/src/USER-SMD/Install.sh +++ b/src/USER-SMD/Install.sh @@ -1,12 +1,12 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp -p fix_smd.cpp .. cp -p fix_smd.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../fix_smd.cpp diff --git a/src/XTC/Install.sh b/src/XTC/Install.sh index 58536dfa91..70047ee8d3 100644 --- a/src/XTC/Install.sh +++ b/src/XTC/Install.sh @@ -1,6 +1,6 @@ # Install/unInstall package files in LAMMPS -if (test $1 == 1) then +if (test $1 = 1) then cp dump_xtc.cpp .. @@ -9,7 +9,7 @@ if (test $1 == 1) then cp xdr_compat.cpp .. cp xdr_compat.h .. -elif (test $1 == 0) then +elif (test $1 = 0) then rm ../dump_xtc.cpp