Blame bugs/new

Chris Moore 195af4
#! /bin/sh
Chris Moore 195af4
Chris Moore 195af4
# this script will create a new bug report from the template
Chris Moore 195af4
Chris Moore 195af4
printf "\n  please 'git fetch' and rebase, then hit return to continue (or control-c to abort) "
Chris Moore 195af4
read x
Chris Moore 195af4
Chris Moore 195af4
file=$(printf "open/%06d.txt" $(($(find . -name '??????.txt' | cut -d/ -f3 | cut -d. -f1 | sort | tail -1 | sed 's/^0*//')+1)))
Chris Moore 195af4
cp template.txt $file
Chris Moore 195af4
cat << EOF
Chris Moore 195af4
Chris Moore 195af4
  the new bug report is in:
Chris Moore 195af4
Chris Moore 195af4
    $file
Chris Moore 195af4
Chris Moore 195af4
  please commit it as soon as possible to avoid conflicts
Chris Moore 195af4
Chris Moore 195af4
EOF