forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4359 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
68491cefa0
commit
0d077cbc2e
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue