diff options
author | Thomas Bläsing <thomasbl@pool.math.tu-berlin.de> | 2008-10-31 14:15:58 +0000 |
---|---|---|
committer | Thomas Bläsing <thomasbl@pool.math.tu-berlin.de> | 2008-10-31 14:15:58 +0000 |
commit | 0f4792a1f72ec41903c48f98a6e71c3fd502c7a8 (patch) | |
tree | b7213ce462f17db02c866a02c52d40cce3aaab6a /bin/get-todo-items | |
parent | e992cc22a9a78c71cdb5321cd655402c5279a572 (diff) |
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
Diffstat (limited to 'bin/get-todo-items')
-rwxr-xr-x | bin/get-todo-items | 10 |
1 files changed, 8 insertions, 2 deletions
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 ;; |