diff options
author | Daniel Lange <dlange@debian.org> | 2018-11-14 11:53:52 +0000 |
---|---|---|
committer | Daniel Lange <dlange@debian.org> | 2018-11-14 11:53:52 +0000 |
commit | 38cb386eb053da24eb4c04b2a301a553332325fc (patch) | |
tree | 1743e843468fe1288ae2ec340d20108275d6ca51 /bin | |
parent | 17a7a589560b58238d405f05ca6904f114d83183 (diff) |
Remove bin/split-by-year as its printfs mangle data (\chars) and safe scripts are available in BTS #908678
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/split-by-year | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/bin/split-by-year b/bin/split-by-year deleted file mode 100755 index 38b10c9ee8..0000000000 --- a/bin/split-by-year +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -#################### -# Copyright (C) 2011 by Raphael Geissert <geissert@debian.org> -# -# -# This file 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 file 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 file. If not, see <https://www.gnu.org/licenses/>. -#################### - -set -eu - -list=data/CVE/list - -[ -f $list ] || { - echo "error: $list doesn't exist" >&2 - exit 1 -} - -cve= -year= -while read line; do - case $line in - CVE-*) - cve="$line" - year="${cve#CVE-}" - year="${year%%-*}" - ;; - *) - if [ "$cve" ]; then - printf "%s\n" "$cve" >> data/CVE/list.$year - cve= - fi - printf "\t%s\n" "$line" >> data/CVE/list.$year - ;; - esac -done < "$list" |