From 0d077cbc2ebcffade384fe28ca176b1429efff16 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 28 Jun 2010 22:57:59 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4359 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/GPU/Package.sh | 20 ++++++++++++++++++++ src/OPT/Package.sh | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 src/GPU/Package.sh create mode 100644 src/OPT/Package.sh diff --git a/src/GPU/Package.sh b/src/GPU/Package.sh new file mode 100644 index 0000000000..d3d43271cf --- /dev/null +++ b/src/GPU/Package.sh @@ -0,0 +1,20 @@ +# Update package files in LAMMPS +# cp package file to src if doesn't exist or is different +# do not copy gayberne files if non-GPU version does not exist + +for file in *.cpp *.h; do + if (test $file == pair_gayberne_gpu.cpp -a ! -e ../pair_gayberne.cpp) then + continue + fi + if (test $file == pair_gayberne_gpu.h -a ! -e ../pair_gayberne.cpp) then + continue + fi + + if (test ! -e ../$file) then + echo " creating src/$file" + cp $file .. + elif (test "`diff --brief $file ../$file`" != "") then + echo " updating src/$file" + cp $file .. + fi +done diff --git a/src/OPT/Package.sh b/src/OPT/Package.sh new file mode 100644 index 0000000000..4780f3a938 --- /dev/null +++ b/src/OPT/Package.sh @@ -0,0 +1,38 @@ +# Update package files in LAMMPS +# cp package file to src if doesn't exist or is different +# do not copy eam and charmm files if non-OPT versions do not exist + +for file in *.cpp *.h; do + if (test $file == pair_eam_opt.cpp -a ! -e ../pair_eam.cpp) then + continue + fi + if (test $file == pair_eam_opt.h -a ! -e ../pair_eam.cpp) then + continue + fi + if (test $file == pair_eam_alloy_opt.cpp -a ! -e ../pair_eam.cpp) then + continue + fi + if (test $file == pair_eam_alloy_opt.h -a ! -e ../pair_eam.cpp) then + continue + fi + if (test $file == pair_eam_fs_opt.cpp -a ! -e ../pair_eam.cpp) then + continue + fi + if (test $file == pair_eam_fs_opt.h -a ! -e ../pair_eam.cpp) then + continue + fi + if (test $file == pair_lj_charmm_coul_long_opt.cpp -a ! -e ../pair_lj_charmm_coul_long.cpp) then + continue + fi + if (test $file == pair_lj_charmm_coul_long_opt.h -a ! -e ../pair_lj_charmm_coul_long.cpp) then + continue + fi + + if (test ! -e ../$file) then + echo " creating src/$file" + cp $file .. + elif (test "`diff --brief $file ../$file`" != "") then + echo " updating src/$file" + cp $file .. + fi +done