GNOME Bugzilla – Bug 311951
gnome-autogen makes a mess of my backups
Last modified: 2005-09-20 06:05:58 UTC
Current gnome-autogen contains line configure_files="`find $srcdir -name '{arch}' -prune -o -name configure.ac -print -o -name configure.in -print`" (Notice the kludge for Arch.) I'm using quilt (http://savannah.nongnu.org/projects/quilt/) to make clean patches I can send to Bugzilla. To manage patches quilt makes backup copies under .pc directory. Now the find command in gnome-autogen uses configure.(in|ac) from the backup which is not very nice. If there is not many projects which use multiple configure.(in|ac), I'd like to suggest to test only topdir for configure.(in|ac), and use some env variable to specify multiple configures. If you think this is not acceptable, at least the find command should skip every directory name beginning with dot ('.'), so that backups et cetera are skipped. Here is a find command that should skip enough configure_files="`find $srcdir -name '{arch}' -prune -o -path '*/.*' -prune -o -name configure.ac -print -o -name configure.in -print`"
I suppose the best fix for this would be to look in the configure files to detect nested projects like this. This would involve looking for AC_CONFIG_SUBDIRS() calls, and only checking those directories.
I've committed a fix for this, pruning directories with names matching ".?*" (which won't match "."). This seems like a good safety measure, since it will also avoid the bookkeeping directories for Bazaar-ng (.bzr) and Subversion (.svn).