summaryrefslogtreecommitdiff
path: root/helpers/mkc_long_lines.in
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/mkc_long_lines.in')
-rwxr-xr-xhelpers/mkc_long_lines.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/helpers/mkc_long_lines.in b/helpers/mkc_long_lines.in
new file mode 100755
index 0000000..91a07e4
--- /dev/null
+++ b/helpers/mkc_long_lines.in
@@ -0,0 +1,17 @@
+#!@AWK@ -f
+
+############################################################
+# Copyright (c) 2014 by Aleksey Cheusov
+#
+# See LICENSE file in the distribution.
+############################################################
+
+# processes backslash in the end of line
+
+/\\$/ {
+ printf "%s", substr($0, 1, length($0)-1)
+ next
+}
+{
+ print
+}