summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDaniel Lange <dlange@debian.org>2018-11-14 11:53:52 +0000
committerDaniel Lange <dlange@debian.org>2018-11-14 11:53:52 +0000
commit38cb386eb053da24eb4c04b2a301a553332325fc (patch)
tree1743e843468fe1288ae2ec340d20108275d6ca51 /bin
parent17a7a589560b58238d405f05ca6904f114d83183 (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-xbin/split-by-year47
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"

© 2014-2024 Faster IT GmbH | imprint | privacy policy