From abc9d711d51b106dfceebab17a7e77cdd61d9277 Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Wed, 6 Feb 2019 20:58:30 +0100 Subject: scripts/periupport_conv: mention ticket file in filename and desc Signed-off-by: Wolfram Sang --- scripts/periupport_conv | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/periupport_conv b/scripts/periupport_conv index 49fa00f..b8a2181 100755 --- a/scripts/periupport_conv +++ b/scripts/periupport_conv @@ -4,17 +4,18 @@ SRC="$1" DST="$2" +TICKET="$(basename $SRC .txt)" [ ! -d "$DST" ] && mkdir -p "$DST" # FIXME: ensure this is not already existing in another task uuid_cmd="cat /proc/sys/kernel/random/uuid" -gawk -v dst="$DST" -v cmd="$uuid_cmd" ' +gawk -v dst="$DST" -v ticket="$TICKET" -v cmd="$uuid_cmd" ' function make_filename(nam) { gsub(/[: /]+/, "_", nam) sub(/_$/, "", nam) - return nam + return ticket "_" nam } /^B: / { bsp_id = substr($0, 4, 40) @@ -44,7 +45,7 @@ gawk -v dst="$DST" -v cmd="$uuid_cmd" ' delete(sorted_idx) asorti(tasks[task], sorted_idx) - print "title: \"Upport " task "\"" > F + print "title: \"From " ticket ", upport " task "\"" > F print "team: TBD" >> F print "key: " uuid >> F print "status: New" >> F -- cgit v1.2.3