From efd0d3e7ab5bdc967035ab65e62d1b97c96b3230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Bl=C3=A4sing?= Date: Fri, 31 Oct 2008 14:15:58 +0000 Subject: change bin/get-todo-items, so that you can run it from everywhere git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@10214 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- bin/get-todo-items | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin/get-todo-items') diff --git a/bin/get-todo-items b/bin/get-todo-items index d3762358d0..0f7af17002 100755 --- a/bin/get-todo-items +++ b/bin/get-todo-items @@ -3,7 +3,13 @@ # Latest change: Do Sep 20 20:13:19 CEST 2007 # extract TODO items for unfixed security issues in unstable/testing -DATA="../data/CVE/list" + +_DIR=`pwd` +_NEW_D=(${_DIR//\// }) +_CNT=`COUNT=0; for i in ${_NEW_D[*]}; do [ ${i} = "secure-testing" ] && echo ${COUNT}; COUNT=$(( COUNT + 1 )); done` +_BASE="$( for i in `seq 0 ${_CNT}`; do echo -n "/${_NEW_D[${i}]}"; done; echo )" + +DATA="${_BASE}/data/CVE/list" TMP="list.tmp" :> $TMP @@ -35,7 +41,7 @@ while read LINE; do TODO="TODO: report bug" echo "$CVE" "$PKG" "$TODO" else - TODO="$( ./get-bug-status "$BUG" )" + TODO="$( ${_BASE}/bin/get-bug-status "$BUG" )" echo "$CVE" "$PKG" "$BUG" "$TODO" fi ;; -- cgit v1.2.3