diff --git a/src/Makefile b/src/Makefile index 036da146b7..b88ebf550c 100755 --- a/src/Makefile +++ b/src/Makefile @@ -37,6 +37,7 @@ help: @echo '' @echo 'make clean-all delete all object files' @echo 'make clean-machine delete object files for one machine' + @echo 'make purge purge obsolete copies of package sources' @echo 'make tar create lmp_src.tar.gz of src dir and packages' @echo 'make makelib create Makefile.lib for static library build' @echo 'make makeshlib create Makefile.shlib for shared library build' @@ -99,6 +100,12 @@ clean-all: clean-%: rm -rf Obj_$(@:clean-%=%) +purge: purge-list.txt + @echo 'Purging obsoleted and generated source files' + @for f in `grep -v '#' purge-list.txt` ; \ + do test -f $$f && rm $$f && echo $$f || : ; \ + done + # Create a tarball of src dir and packages tar: diff --git a/src/purge-list.txt b/src/purge-list.txt new file mode 100644 index 0000000000..184df52ae0 --- /dev/null +++ b/src/purge-list.txt @@ -0,0 +1,352 @@ +# deleted on Fri Oct 19 15:27:15 2012 +0000 +pair_lj_charmm_coul_long_proxy_omp.cpp +pair_lj_charmm_coul_long_proxy_omp.h +pair_lj_class2_coul_long_proxy_omp.cpp +pair_lj_class2_coul_long_proxy_omp.h +pair_lj_cut_coul_long_proxy_omp.cpp +pair_lj_cut_coul_long_proxy_omp.h +pair_lj_cut_tip4p_long_proxy_omp.cpp +pair_lj_cut_tip4p_long_proxy_omp.h +pppm_proxy.cpp +pppm_proxy.h +pppm_tip4p_proxy.cpp +pppm_tip4p_proxy.h +# deleted on Wed Oct 3 15:17:27 2012 +0000 +pair_lj_cut_coul_long_proxy_tip4p_omp.cpp +pair_lj_cut_coul_long_proxy_tip4p_omp.h +# deleted on Wed Oct 3 15:06:24 2012 +0000 +pair_lj_cut_coul_long_tip4p_opt.cpp +pair_lj_cut_coul_long_tip4p_opt.h +# deleted on Wed Oct 3 14:53:43 2012 +0000 +pair_lj_charmm_coul_long_proxy_omp.cpp +pair_lj_charmm_coul_long_proxy_omp.h +pair_lj_class2_coul_long_proxy_omp.cpp +pair_lj_class2_coul_long_proxy_omp.h +pair_lj_cut_coul_long_proxy_omp.cpp +pair_lj_cut_coul_long_proxy_omp.h +pair_lj_cut_coul_long_tip4p_omp.cpp +pair_lj_cut_coul_long_tip4p_omp.h +# deleted on Wed Oct 3 14:50:44 2012 +0000 +pair_buck_disp_coul_long_omp.cpp +pair_buck_disp_coul_long_omp.h +pair_lj_disp_coul_long_omp.cpp +pair_lj_disp_coul_long_omp.h +# deleted on Wed Oct 3 14:46:42 2012 +0000 +pair_lj_cut_coul_long_tip4p.cpp +pair_lj_cut_coul_long_tip4p.h +# deleted on Wed Oct 3 14:46:23 2012 +0000 +pair_buck_disp_coul_long.cpp +pair_buck_disp_coul_long.h +pair_lj_disp_coul_long.cpp +pair_lj_disp_coul_long.h +pair_lj_disp_coul_long_tip4p.cpp +pair_lj_disp_coul_long_tip4p.h +# deleted on Tue Oct 2 22:50:58 2012 +0000 +pair_buck_coul_omp.cpp +pair_buck_coul_omp.h +pair_lj_coul_omp.cpp +pair_lj_coul_omp.h +# deleted on Tue Oct 2 20:12:27 2012 +0000 +pair_lj_charmm_coul_pppm_omp.cpp +pair_lj_charmm_coul_pppm_omp.h +pair_lj_class2_coul_pppm_omp.cpp +pair_lj_class2_coul_pppm_omp.h +pair_lj_cut_coul_pppm_omp.cpp +pair_lj_cut_coul_pppm_omp.h +pair_lj_cut_coul_pppm_tip4p_omp.cpp +pair_lj_cut_coul_pppm_tip4p_omp.h +# deleted on Tue Oct 2 19:59:40 2012 +0000 +pair_buck_coul_omp.cpp +pair_buck_coul_omp.h +pair_lj_coul_omp.cpp +pair_lj_coul_omp.h +pair_lj_cut_coul_long_tip4p_omp.cpp +pair_lj_cut_coul_long_tip4p_omp.h +pppm_proxy.cpp +pppm_proxy.h +pppm_tip4p_proxy.cpp +pppm_tip4p_proxy.h +# deleted on Tue Oct 2 19:58:21 2012 +0000 +pair_lj_cut_coul_pppm_omp.cpp +pair_lj_cut_coul_pppm_omp.h +pair_lj_cut_coul_pppm_tip4p_omp.cpp +pair_lj_cut_coul_pppm_tip4p_omp.h +# deleted on Tue Oct 2 19:58:03 2012 +0000 +pair_lj_charmm_coul_pppm_omp.cpp +pair_lj_charmm_coul_pppm_omp.h +pair_lj_class2_coul_pppm_omp.cpp +pair_lj_class2_coul_pppm_omp.h +# deleted on Tue Oct 2 16:36:24 2012 +0000 +ewald_n.cpp +ewald_n.h +pair_buck_coul.cpp +pair_buck_coul.h +pair_lj_coul.cpp +pair_lj_coul.h +# deleted on Wed Jul 25 15:17:24 2012 +0000 +pair_lj_sdk_coul_cut_cuda.cpp +pair_lj_sdk_coul_cut_cuda.h +pair_lj_sdk_coul_debye_cuda.cpp +pair_lj_sdk_coul_debye_cuda.h +# deleted on Tue Jul 24 14:55:49 2012 +0000 +pair_cg_cmm_coul_cut_cuda.cpp +pair_cg_cmm_coul_cut_cuda.h +pair_cg_cmm_coul_debye_cuda.cpp +pair_cg_cmm_coul_debye_cuda.h +pair_cg_cmm_coul_long_cuda.cpp +pair_cg_cmm_coul_long_cuda.h +pair_cg_cmm_cuda.cpp +pair_cg_cmm_cuda.h +# deleted on Sat Jun 9 18:07:14 2012 -0400 +molfile_tester.cpp +# deleted on Mon Mar 5 15:42:57 2012 +0000 +dirent.h +erf.h +fftw.h +inttypes.h +sleep.cpp +sleep.h +stdint.h +time.h +unistd.h +style_angle.h +style_atom.h +style_bond.h +style_command.h +style_compute.h +style_dihedral.h +style_dump.h +style_fix.h +style_improper.h +style_integrate.h +style_kspace.h +style_minimize.h +style_pair.h +style_region.h +style_angle.h +style_atom.h +style_bond.h +style_command.h +style_compute.h +style_dihedral.h +style_dump.h +style_fix.h +style_improper.h +style_integrate.h +style_kspace.h +style_minimize.h +style_pair.h +style_region.h +style_angle.h +style_atom.h +style_bond.h +style_command.h +style_compute.h +style_dihedral.h +style_dump.h +style_fix.h +style_improper.h +style_integrate.h +style_kspace.h +style_minimize.h +style_pair.h +style_region.h +# deleted on Fri Jan 6 20:58:15 2012 +0000 +fix_reaxc_species.cpp +fix_reaxc_species.h +# deleted on Fri Jan 6 17:53:44 2012 +0000 +mpi.cpp +# deleted on Sat Dec 31 20:27:05 2011 -0500 +ewald_cg.cpp +ewald_cg.h +# deleted on Sat Dec 31 20:01:21 2011 -0500 +dihedral_omp.cpp +dihedral_omp.h +pair_cg_cmm_omp.cpp +pair_cg_cmm_omp.h +pair_lj_cut_coul_long_tip4p_omp.cpp +pair_lj_cut_coul_long_tip4p_omp.h +pair_omp.cpp +pair_omp.h +# deleted on Fri Dec 9 15:45:04 2011 -0500 +mpi.cpp +# deleted on Thu Dec 8 23:13:51 2011 +0000 +pair_cg_cmm_coul_long_gpu.cpp +pair_cg_cmm_coul_long_gpu.h +pair_cg_cmm_gpu.cpp +pair_cg_cmm_gpu.h +# deleted on Mon Nov 7 19:32:59 2011 -0500 +pair_cg_cmm_coul_long_gpu.cpp +pair_cg_cmm_coul_long_gpu.h +pair_cg_cmm_gpu.cpp +pair_cg_cmm_gpu.h +# deleted on Tue Oct 25 23:04:03 2011 -0400 +lj_sdk_common.cpp +# deleted on Thu Oct 20 15:10:28 2011 +0000 +pair_line.cpp +pair_line.h +pair_tri.cpp +pair_tri.h +# deleted on Thu Oct 20 14:35:39 2011 +0000 +cuda_common.h +cuda_precision.h +cuda_shared.h +# deleted on Fri Oct 7 08:55:40 2011 -0400 +pair_hybrid_overlay_omp.cpp +pair_hybrid_overlay_omp.h +# deleted on Fri Oct 7 08:54:38 2011 -0400 +angle_hybrid_omp.cpp +angle_hybrid_omp.h +bond_hybrid_omp.cpp +bond_hybrid_omp.h +dihedral_hybrid_omp.cpp +dihedral_hybrid_omp.h +improper_hybrid_omp.cpp +improper_hybrid_omp.h +pair_hybrid_omp.cpp +pair_hybrid_omp.h +# deleted on Mon Aug 22 13:48:15 2011 -0400 +omp_thr.cpp +omp_thr.h +# deleted on Mon Aug 8 22:56:28 2011 +0000 +dihedral_cosineshiftexp.cpp +dihedral_cosineshiftexp.h +# deleted on Mon Aug 8 22:55:20 2011 +0000 +angle_cosineshift.cpp +angle_cosineshift.h +angle_cosineshiftexp.cpp +angle_cosineshiftexp.h +# deleted on Mon Aug 8 19:25:08 2011 +0000 +pppm_gpu_double.cpp +pppm_gpu_double.h +pppm_gpu_single.cpp +pppm_gpu_single.h +# deleted on Tue Jun 14 00:04:59 2011 +0000 +erfc.cpp +erfc.h +sleep.cpp +sleep.h +# deleted on Fri Apr 15 20:57:03 2011 -0400 +pair_lj_charmm_coul_long_gpu2.cpp +pair_lj_charmm_coul_long_gpu2.h +# deleted on Wed Apr 13 21:40:14 2011 +0000 +atom_vec_colloid.cpp +atom_vec_colloid.h +atom_vec_granular.cpp +atom_vec_granular.h +# deleted on Fri Nov 19 12:53:07 2010 -0500 +fix_pour_omp.cpp +fix_pour_omp.h +# deleted on Thu Aug 19 23:20:14 2010 +0000 +fix_qeq.cpp +fix_qeq.h +# deleted on Thu Jun 17 01:34:38 2010 +0000 +compute_vsum.cpp +compute_vsum.h +# deleted on Mon Jun 14 11:06:46 2010 -0400 +pair_buck_coul_omp.cpp +pair_buck_coul_omp.h +pair_lj_coul_omp.cpp +pair_lj_coul_omp.h +# deleted on Thu Jun 10 15:39:08 2010 -0400 +pair_buck_coul_omp.cpp +pair_buck_coul_omp.h +# deleted on Tue Jun 8 15:42:51 2010 -0400 +pair_buck_coul_omp.cpp +pair_buck_coul_omp.h +# deleted on Sat May 22 17:00:55 2010 -0400 +mpi.cpp +# deleted on Tue Jan 12 01:37:48 2010 +0000 +style_asphere.h +style_class2.h +style_colloid.h +style_dipole.h +style_dsmc.h +style_gpu.h +style_granular.h +style_kspace.h +style_manybody.h +style_meam.h +style_molecule.h +style_opt.h +style_peri.h +style_poems.h +style_prd.h +style_reax.h +style_user_ackland.h +style_user_atc.h +style_user_cd_eam.h +style_user_cg_cmm.h +style_user_ewaldn.h +style_user_imd.h +style_user_smd.h +style_xtc.h +# deleted on Thu Dec 17 23:52:31 2009 +0000 +dump_bond.cpp +dump_bond.h +# deleted on Mon Nov 9 18:20:20 2009 +0000 +atom_vec_dpd.cpp +atom_vec_dpd.h +style_dpd.h +# deleted on Mon Aug 10 20:28:57 2009 +0000 +style_gpu.h +# deleted on Mon Jun 22 21:11:31 2009 +0000 +fix_write_reax_bonds.cpp +fix_write_reax_bonds.h +# deleted on Wed Feb 11 22:26:01 2009 +0000 +reax_cbkabo.h +reax_cbkbo.h +reax_cbkc.h +reax_cbkch.h +reax_cbkd.h +reax_cbkia.h +reax_cbklonpar.h +reax_cbknubon2.h +reax_cbkpairs.h +reax_cbkqa.h +reax_energies.h +reax_fortran.h +reax_functions.h +reax_params.h +reax_small.h +# deleted on Thu Jan 8 16:53:09 2009 +0000 +pair_gran_hertzian.cpp +pair_gran_hertzian.h +pair_gran_history.cpp +pair_gran_history.h +pair_gran_no_history.cpp +pair_gran_no_history.h +# deleted on Mon Mar 17 23:24:44 2008 +0000 +compute_temp_dipole.cpp +compute_temp_dipole.h +fix_nve_dipole.cpp +fix_nve_dipole.h +# deleted on Mon Mar 17 23:23:24 2008 +0000 +fix_nve_gran.cpp +fix_nve_gran.h +# deleted on Tue Feb 19 16:22:21 2008 +0000 +style_meam.h +# deleted on Fri Nov 30 21:49:20 2007 +0000 +fix_gran_diag.cpp +fix_gran_diag.h +# deleted on Wed Jun 20 15:38:27 2007 +0000 +style_colloid.h +# deleted on Wed Jun 20 13:26:08 2007 +0000 +style_meam.h +# deleted on Tue Jan 30 00:54:31 2007 +0000 +atom_angle.cpp +atom_angle.h +atom_bond.cpp +atom_bond.h +atom_full.cpp +atom_full.h +atom_molecular.cpp +atom_molecular.h +# deleted on Tue Jan 30 00:22:05 2007 +0000 +atom_dpd.cpp +atom_dpd.h +atom_granular.cpp +atom_granular.h +# deleted on Wed Dec 13 00:34:21 2006 +0000 +fix_insert.cpp +fix_insert.h diff --git a/tools/update-purge-list.pl b/tools/update-purge-list.pl new file mode 100755 index 0000000000..18398e22f9 --- /dev/null +++ b/tools/update-purge-list.pl @@ -0,0 +1,36 @@ +#!/usr/bin/perl -w + +use strict; +my $date=""; +my $newdate=""; +my @list; +my $scm=0; + +open(GITLOG,'git log --summary |'); +open(LIST,'> purge-list.txt'); + +while () { + chomp; + if (/^Date:\s+(.*)/) { + $newdate = $1; + } + + if (/\s+delete mode \d+ src\/(\S+)\/(\S+\.(cpp|h)).*/) { + # check if file exists in a different sub directory + @list = glob("[A-Z-][A-Z-]*/$2"); + if ($#list < 0) { + # check if file got moved to main source directory + $scm = system("git ls-files $2 --error-unmatch < /dev/null > /dev/null 2>&1"); + if ($scm) { + if ($date ne $newdate) { + $date = $newdate; + print LIST "# deleted on $date\n"; + } + print LIST "$2\n"; + } + } + } +} + +close GITLOG; +close LIST;