Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitm@lovullo.com>2016-08-24 10:19:11 -0400
committerMike Gerwitz <gerwitm@lovullo.com>2016-08-24 12:38:03 -0400
commitc0d95b4a054f8dadc6cbc98e6fa1efe02d5f6507 (patch)
treee2bb32f053a57e19a125915c00566ed31a80e7b6 /src/current/tools
parentff01f39c1e8c9b9549d884a0db1f9a74799cf37e (diff)
downloadtame-c0d95b4a054f8dadc6cbc98e6fa1efe02d5f6507.tar.gz
tame-c0d95b4a054f8dadc6cbc98e6fa1efe02d5f6507.tar.bz2
tame-c0d95b4a054f8dadc6cbc98e6fa1efe02d5f6507.zip
Add copyright headers to src/current/
Diffstat (limited to 'src/current/tools')
-rwxr-xr-xsrc/current/tools/csv2xml16
-rwxr-xr-xsrc/current/tools/csvi18
-rwxr-xr-xsrc/current/tools/csvm2csv22
-rwxr-xr-xsrc/current/tools/gen-make17
-rw-r--r--src/current/tools/lib/zipre.php18
-rwxr-xr-xsrc/current/tools/tdat2xml20
-rwxr-xr-xsrc/current/tools/zipre16
7 files changed, 120 insertions, 7 deletions
diff --git a/src/current/tools/csv2xml b/src/current/tools/csv2xml
index 3a5d1b8..60bd745 100755
--- a/src/current/tools/csv2xml
+++ b/src/current/tools/csv2xml
@@ -1,6 +1,22 @@
#!/usr/bin/awk -f
#
# Compiles the given CSV into a table definition
+#
+# 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/>.
+##
function columngen( header )
diff --git a/src/current/tools/csvi b/src/current/tools/csvi
index 08d80e2..6b9af78 100755
--- a/src/current/tools/csvi
+++ b/src/current/tools/csvi
@@ -2,10 +2,24 @@
#
# Performs interpolation for columns in a CSV and outputs the result
#
+# 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/>.
+#
# Configurable values (use -vname=value from command line):
# step - use predeterminated step instead of calculating from first two rows
-#
-# #
+##
function storeline()
{
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 )
diff --git a/src/current/tools/gen-make b/src/current/tools/gen-make
index 3f59bfe..48f53ba 100755
--- a/src/current/tools/gen-make
+++ b/src/current/tools/gen-make
@@ -1,7 +1,22 @@
#!/bin/bash
#
# Generates Makefile containing dependencies for each package
-# #
+#
+# 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/>.
+##
# windows machines may not have the tools to resolve a path, so let's do so
# ourselves (TODO: there's better (and more performant) ways of doing this than
diff --git a/src/current/tools/lib/zipre.php b/src/current/tools/lib/zipre.php
index b4f22e1..d019794 100644
--- a/src/current/tools/lib/zipre.php
+++ b/src/current/tools/lib/zipre.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * Generate regular expressions to match a list of zip codes
+ *
+ * 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/>.
+ */
function gen_re_quick( $data )
diff --git a/src/current/tools/tdat2xml b/src/current/tools/tdat2xml
index db4e9b1..e08ca7c 100755
--- a/src/current/tools/tdat2xml
+++ b/src/current/tools/tdat2xml
@@ -1,4 +1,24 @@
#!/usr/bin/env php
+<?php
+/**
+ * Generate territory matrices from data files
+ *
+ * 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/>.
+ */
+?>
<?xml-stylesheet type="text/xsl" href="../../rater/summary.xsl"?>
<lv:package
xmlns:lv="http://www.lovullo.com/rater"
diff --git a/src/current/tools/zipre b/src/current/tools/zipre
index 4e6966f..e16a5e9 100755
--- a/src/current/tools/zipre
+++ b/src/current/tools/zipre
@@ -4,11 +4,25 @@
* Given a set of sorted zips, generates a regular expression to match only the
* given input
*
+ * 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/>.
+ *
* I wanted to write this in Scheme (it's a perfect recursive application), but
* I figured that other developers may get annoyed having to find a Scheme impl
* that works for them...so...PHP it is...
*
- *
* THIS SCRIPT EXPECTS THE DATA TO BE SORTED! This can be easily accomplished by
* doing the following:
* sort -d zipfile | ./zipre