[brlcad-commits] CVS: brlcad Makefile.am,14.49,14.50
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: Sean M. <br...@us...> - 2007-11-20 20:47:00
|
Update of /cvsroot/brlcad/brlcad In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14864 Modified Files: Makefile.am Log Message: enhance the dist hook so that it checks whether files listed in CVS are actually included in the source dist that we end up with. makes it a heck of a lot easier to ensure that we have all the files that we're supposed to come time to make a source release. Index: Makefile.am =================================================================== RCS file: /cvsroot/brlcad/brlcad/Makefile.am,v retrieving revision 14.49 retrieving revision 14.50 diff -w -u -r14.49 -r14.50 --- Makefile.am 3 Oct 2007 19:35:55 -0000 14.49 +++ Makefile.am 20 Nov 2007 20:47:03 -0000 14.50 @@ -298,8 +298,19 @@ # delete files that should not be in the distribution dist-hook: - rm -f $(distdir)/include/brlcad_config.h - rm -rf `find $(distdir) -type d -name CVS` + files="`find . -name Entries -exec grep -v '^D' {} /dev/null \; | sed 's/:\(\/[^\/]*\)\/.*/\1/g' | sed 's/\/CVS\/Entries//g' | grep -v 'brlcad-' | grep -v .cvsignore`" ; \ + missing=0 ; \ + for file in $$files ; do \ + if test ! -f $(distdir)/$$file ; then \ + missing=1 ; \ + echo "MISSING FROM DIST: $$file" ; \ + fi ; \ + done ; \ + if test "x$$missing" = "x1" ; then \ + exit 1 ; \ + fi + find $(distdir) -type f \( -name '.cvsignore' -or -name 'brlcad_config.h' \) -exec rm -f {} \; + find $(distdir) -type d \( -name 'CVS' -or -name '.svn' \) -prune -exec rm -rf {} \; ########################## |