No non-source distdef processing for source files anymore:
authorPekka Riikonen <priikone@silcnet.org>
Fri, 22 Apr 2005 20:40:27 +0000 (20:40 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 22 Apr 2005 20:40:27 +0000 (20:40 +0000)
apps/autodist/CHANGES
apps/autodist/autodist.in

index 170433a4465399c461db27a5fd6677a41427c20a..fab0d8427254dbe5cbbbad8d581fdb830ddac8b8 100644 (file)
@@ -7,6 +7,9 @@ Fri Apr 22 20:23:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
        * No Autodist header for "other" '.ad' files as we don't know 
          what the file contains.
 
+       * No non-source distdef format processing for source files
+         anymore.
+
 Tue Apr 19 17:12:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
 
        * Remove extra ' ' and '\t' when joining backslashed lines.
index 124fe016b60e26a5e51f8dec2776964cda81a81c..0b3638ff9f7f2170b6494b5218c21231ee4c7428 100755 (executable)
@@ -688,11 +688,16 @@ ad_process_tree()
 {
   ad_debug ">ad_process_tree: $1"
 
-  # We take all files, other than *.ad, including source files, in case
-  # they use the non-C-compiler-friendly format of distdefs, which is
-  # possible.
-
-  files=`find $am_distdir \! -name \*\.ad`
+  # Take files, except source and .ad files.
+  files=`find $am_distdir \! -name \*\.ad \( \
+       \! -name \*\.[cC] -a \
+       \! -name \*\.[cC][cCpP] -a \
+       \! -name \*\.[cC][xX][xX] -a \
+       \! -name \*\.[cC][pP][pP] -a \
+       \! -name \*\.[cC]++ -a \
+       \! -name \*\.m -a \
+       \! -name \*\.[hH] -a \
+       \! -name \*\.hh \)`
   files=`echo $files | sed 's/$am_distdir//'`
 
   # Take away noprocess list