From: Pekka Riikonen Date: Wed, 16 Jan 2008 20:41:21 +0000 (+0000) Subject: Removed the previous backslash removin code. X-Git-Tag: autodist.1.4~5 X-Git-Url: http://git.silcnet.org/gitweb/?p=autodist.git;a=commitdiff_plain;h=a77fd4e339890ccf8c7da9d2e70327312bb837ef Removed the previous backslash removin code. --- diff --git a/apps/autodist/CHANGES b/apps/autodist/CHANGES index 4df5368..c5468f8 100644 --- a/apps/autodist/CHANGES +++ b/apps/autodist/CHANGES @@ -1,8 +1,7 @@ Wed Jan 16 17:17:41 EET 2008 Pekka Riikonen * Fixed *.ad (excluding configure.ad and Makefile.ad files) - processing to correctly remove trailing backslashes and - copy the processed file to new name. + processing to correctly copy the processed file to new name. Thu Sep 13 18:50:00 EEST 2007 Pekka Riikonen diff --git a/apps/autodist/autodist.in b/apps/autodist/autodist.in index 3154d5f..e3b67b7 100755 --- a/apps/autodist/autodist.in +++ b/apps/autodist/autodist.in @@ -571,16 +571,11 @@ ad_process_ads() ad_log " $i into $fname" # Run the distribution processing for this file - ad_process_file $i $fname.tmp false + ad_process_file $i $fname false - # Remove any trailing backslashes - if test -f "$fname.tmp"; then - sed -e :a -e '/\\$/N; s/[ ]*\\\n//; ta' < $fname.tmp > $fname - else + if test '!' -f "$fname"; then cp -p $orig $fname || exit 1 fi - - rm -f $fname.tmp done ad_log ""