diff options
author | Norbert Preining <norbert@preining.info> | 2020-05-21 03:03:16 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-05-21 03:03:16 +0000 |
commit | dff9a257a451ee8437fa2f02ebac9bddd6bb8301 (patch) | |
tree | 291a7094be65c66b14603bb249df5f4752614a83 /support/classpack/decommentbbl.awk | |
parent | ddb76ba99f9f97ada742406d9e85b6d3f49e583a (diff) |
CTAN sync 202005210303
Diffstat (limited to 'support/classpack/decommentbbl.awk')
-rw-r--r-- | support/classpack/decommentbbl.awk | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/support/classpack/decommentbbl.awk b/support/classpack/decommentbbl.awk deleted file mode 100644 index 0ceb4d7f36..0000000000 --- a/support/classpack/decommentbbl.awk +++ /dev/null @@ -1,37 +0,0 @@ -# decommentbbl.awk -# -# This awk(1) script catenates consecutive lines of a BiBTeX-produced -# .bbl file which end in a comment character (removing the comment -# character in the process) because the default % comment character -# gets misinterpreted by the ltxdoc package when building class or -# package files. -# -# Copyright © 2008-2012 Silmaril Consultants -# Available under the terms of the LaTeX Project Public License -# as part of the classpack development package -# Peter Flynn <peter@silmaril.ie> 2010-10-14 -# -###################################################################### -# -# Read every line of the file into an array - -{ - line[NR]=$0; -} - -###################################################################### -# -# At the end, go through the array; if a line ends with a % sign, -# catenate it to the buffer, omitting the percent sign itself; -# otherwise, output the buffer and zero it for further use. - -END { - for(i=1;i<=NR;++i) { - if(substr(line[i],length(line[i]))=="%") { - buffer=buffer substr(line[i],1,length(line[i])-1); - } else { - print buffer line[i];buffer=""; - } - } -} - |