summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-02-01 15:25:04 +0100
committerJörg Frings-Fürst <debian@jff.email>2022-02-01 15:25:04 +0100
commit8e5d399808d2270ae9d56c96560a021e594d18a4 (patch)
treecb83e4c8216cf0e8bcaa17a6f2cb64cf4d7f469a /tools
parent97e55bdc5cdf59304af739e65f416320bcbcf599 (diff)
parent302276dc1b90cfc972fb726ca94a23b18f4b0088 (diff)
Update upstream source from tag 'upstream/1.1.1'
Update to upstream version '1.1.1' with Debian dir 4cb81ae9eaa2503b9c320ac1e8125f9df6e7f7b3
Diffstat (limited to 'tools')
-rw-r--r--tools/NEWS.template.jinja30
-rwxr-xr-xtools/epson2usb.pl3
2 files changed, 30 insertions, 3 deletions
diff --git a/tools/NEWS.template.jinja b/tools/NEWS.template.jinja
new file mode 100644
index 0000000..afb5c11
--- /dev/null
+++ b/tools/NEWS.template.jinja
@@ -0,0 +1,30 @@
+{% for section, _ in sections|dictsort(by='key') %}
+{% set underline = "-" %}
+{% if section %}
+----- {{section}}
+
+{% endif %}
+{% if sections[section] %}
+{% for category, val in definitions|dictsort if category in sections[section]%}
+
+### {{ definitions[category]['name'] }}
+
+{% for text, values in sections[section][category]|dictsort(by='value') %}
+- {{ text }}
+{% endfor %}
+
+{% if sections[section][category]|length == 0 %}
+
+No significant changes.
+
+
+{% else %}
+{% endif %}
+{% endfor %}
+{% else %}
+
+No significant changes.
+
+
+{% endif %}
+{% endfor %}
diff --git a/tools/epson2usb.pl b/tools/epson2usb.pl
index 6d542d7..b1e63dd 100755
--- a/tools/epson2usb.pl
+++ b/tools/epson2usb.pl
@@ -42,11 +42,8 @@ use warnings;
next unless $m->{'usbid'} =~ /"0x04b8"\s+"(0x[[:xdigit:]]+)"/;
my $id = $1;
-
# print $id, "\n";
- $id =~ s/0x0/0x/;
-
$m->{'model'} =~ s/;.+$//;
$m->{'model'} =~ s/\"//g;
$m->{'model'} =~ s/\s+$//;