Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/current/tools/csvm2csv')
-rwxr-xr-xsrc/current/tools/csvm2csv22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/current/tools/csvm2csv b/src/current/tools/csvm2csv
index 410d9fa..3bcbc7b 100755
--- a/src/current/tools/csvm2csv
+++ b/src/current/tools/csvm2csv
@@ -2,14 +2,29 @@
#
# Compiles a "magic" CSV file into a normal CSV
#
+# Copyright (C) 2016 LoVullo Associates, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
# "Magic" CSVs simply exist to make life easier: they permit comments, blank
# lines, variables, sub-delimiter expansion, and any number of ranges per line.
# Ranges will be expanded in every combination, making rate tables highly
# maintainable.
#
-# Variables are also supported when defined using :var=val. Variables may expand
-# into ranges, 'cause they're awesome. Multiple variables may be delimited by
-# semi-colons, as may multiple values.
+# Variables are also supported when defined using :var=val. Variables may
+# expand into ranges, 'cause they're awesome. Multiple variables may be
+# delimited by semi-colons, as may multiple values.
#
# For example:
# :foo=1--3
@@ -27,6 +42,7 @@
# 1, 5
# 1, 6
# ...
+##
function rangeout( i, m, j, me, orig )