On Oct 18, 2004, at 3:14 PM, Benoit des Ligneris wrote:
I have a very stupid script :
cat clean_my_tree_before_commit.sh
#!/bin/bash
pushd ..
echo "Make clean"
#make clean
echo "Make distclean"
#make distclean
echo "Cleaning forgotten files"
rm -rf configure Makefile.in autom4te.cache aclocal.m4 oscarinstall.log scripts/Makefile.in oscarsamples/Makefile.in share/Makefile.in share/prereqs/Makefile.in share/prereqs/HTML-Tree/Makefile.in share/prereqs/HTML-Tree/media/Makefile.in share/prereqs/HTML-Tree/scripts/Makefile.in share/prereqs/oda/Makefile.in share/prereqs/oda/scripts/Makefile.in share/prereqs/XML-Simple/Makefile.in share/prereqs/XML-Simple/media/Makefile.in share/prereqs/XML-Simple/scripts/Makefile.in share/prereqs/XML-Parser/Makefile.in share/prereqs/XML-Parser/media/Makefile.in share/prereqs/XML-Parser/scripts/Makefile.in share/prereqs/perl-Tk/Makefile.in share/prereqs/perl-Tk/media/Makefile.in share/prereqs/perl-Tk/media/RPMS/Makefile.in share/prereqs/perl-Tk/media/RPMS/5.6/Makefile.in share/prereqs/perl-Tk/media/RPMS/5.8/Makefile.in share/prereqs/perl-Tk/media/SRPMS/Makefile.in share/prereqs/perl-Tk/scripts/Makefile.in share/serverlists/Makefile.in dist/mkinstalldirs dist/Makefile.in dist/config.guess dist/config.sub dist/config_files_list.m4 dist/missing dist/install-sh doc/Makefile.in images/Makefile.in lib/Makefile.in lib/Qt/Makefile.in lib/OSCAR/Makefile.in lib/Tk/Makefile.in lib/Tk/HTML/Makefile.in testing/Makefile.in
popd
echo "Cleaning (auto)conf files in packages"
pushd ../packages && find . -name Makefile.in -o -name .oscar_made_makefile_am -o -name Makefile.am | xargs rm -f
popd
I was too "ashamed" of submiting it but is is working fine here ;-)))
However, I think that we should incorporate it into the automake/autoconf mechanism.
I disagree. :-)
For example, you have "make distclean" commented out and have repeated much of the same stuff in your script that "make distclean" is supposed to do. I assume that there is a reason for that, but it's not immediately obvious what it is...?
Another solution is to add those file to the "ignore" meta-information of SVN...
That would be a much better solution.
--
{+} Jeff Squyres
{+} [EMAIL PROTECTED]
{+} http://www.lam-mpi.org/------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Oscar-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/oscar-devel
