From: lxoliva Date: Sat, 23 Jan 2010 02:30:34 +0000 (+0000) Subject: Drop extraneous ;/**/; markers at the end of files and patches. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=14a738441a2b4d0e2332cbcee08507393225edc5;p=releases.git Drop extraneous ;/**/; markers at the end of files and patches. Adjust python handling of leading ;/* in normal input. Drop DONT_USE_GAWK_EXTENSIONS configuration. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@5875 559672b5-ba27-0410-b829-e8f1faed8b1b --- diff --git a/deblob-check-awk b/deblob-check-awk index fe0059e4fe8..34cd7f2f219 100755 --- a/deblob-check-awk +++ b/deblob-check-awk @@ -3309,8 +3309,7 @@ s = '' for line in sys.stdin: # Read into s all lines between begin and end. An empty line, without # even the '\n', flags the end of the input. - if line[:3] == ';/*': - assert line[-4:] == '*/;\n' + if line[:3] == ';/*' and line[-4:] == '*/;\n': if line[3:9] == 'begin ': nextfilenames = (line[9:-4], filenames) if s == '': @@ -3320,8 +3319,9 @@ for line in sys.stdin: elif line[3:7] == 'end ': assert line[7:-4] == filenames[0] nextfilenames = filenames[1] - elif len(line) == 7: - s += '\n' + else: + assert filenames != None + s += line continue else: assert filenames != None @@ -3467,11 +3467,12 @@ s,\\\([{(|)}?+]\),\1,g; *) cblob='$.^';; esac - if ${DONT_USE_GAWK_EXTENSIONS-false}; then - xrs="# " nrs= eor='$0' eormatch='' eornl= eornlsz=0 - else - xrs= nrs="# " eor="RT" eormatch='RT ~ ' eornl='[\n]' eornlsz=1 - fi + xrs= nrs="# " eor="RT" eormatch='RT ~ ' eornl='[\n]' eornlsz=1 + # Uncomment the line below to disable the use of a regular + # expression for the awk Record Separator, a GNU awk extension. + # Using this extension appears to save a lot of memory for long + # deblob-check runs. + # xrs="# " nrs= eor='$0' eormatch='' eornl= eornlsz=0 cat >> "$scriptname" <