Remove extra whitespace and tab when joining backslashed lines.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 19 Apr 2005 17:19:39 +0000 (17:19 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 19 Apr 2005 17:19:39 +0000 (17:19 +0000)
apps/autodist/CHANGES
apps/autodist/autodist.in
apps/autodist/tests/autodist1.test
apps/autodist/tests/autodist2.test

index f17113f25364d5be3ac7aa42927e767db6a9122f..b53b6d02166c9076e9acdd68852cb3e07d931d3b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Apr 19 17:12:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
+
+       * Remove extra ' ' and '\t' when joining backslashed lines.
+
 Mon Apr 18 21:05:42 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
 
        * Process '*.ad' files before calling autoconf and automake.
index 67a266314f42237d242ebe8e5282b42a64acdf09..ecb793cfefc2172702a3b9473f8ca5c0dd309de7 100755 (executable)
@@ -376,7 +376,7 @@ ad_make_configure_ac()
 
   # Remove any trailing backslashes
   if test -f "$fname"; then
-    cat $fname | sed -e :a -e '/\\$/N; s/\\\n//; ta' > configure.ac
+    cat $fname | sed -e :a -e '/\\$/N; s/[     ]*\\\n//; ta' > configure.ac
   else
     cp -p $fname.tmp configure.ac
   fi
@@ -437,7 +437,7 @@ ad_make_makefile_ams()
 
     # Remove any trailing backslashes
     if test -f "$fname.tmp"; then
-      cat $fname.tmp | sed -e :a -e '/\\$/N; s/\\\n//; ta' >> $fname.am
+      cat $fname.tmp | sed -e :a -e '/\\$/N; s/[       ]*\\\n//; ta' >> $fname.am
     else
       cat $ff >> $fname.am
     fi
index 2ea7cc433a29a62bd8e1e2df921ad14a20dab589..5175a28089171ac288ebeea53cf8c13d3114ad25 100755 (executable)
@@ -26,11 +26,17 @@ echo configure.ad ok
 EOF
 
 cat << EOF > Makefile.ad
-SUBDIRS=       \
+SUBDIRS=       \\
 #ifdef _DIST_NODEF
-       nodef   \
+       nodef   \\
+       poa     \\
+       paa     \\
 #endif _DIST_NODEF
-#endif
+       .       \\
+       .       \\
+       .       \\
+       .       \\
+
 EOF
 
 rm -rf distdir subdir
index 3a01e4fa70184b45009fbde4823a663f14e1ebf5..780b16829f62330989b3e142a0a52712b1c4547e 100755 (executable)
@@ -26,11 +26,12 @@ echo configure.ad ok
 EOF
 
 cat << EOF > Makefile.ad
-SUBDIRS=       \
+SUBDIRS=       \\
 #ifndef _DIST_TEST
-       nodef   \
+       nodef   \\
 #endif _DIST_TEST
-#endif
+       .       \\
+
 EOF
 
 rm -rf distdir subdir