# HG changeset patch # User Christophe Lincoln # Date 1486661756 -3600 # Node ID 8c3d1f530e15be9b1a1c718707bdb4e3a8b0272a # Parent 2228e078548940a36fb7809bb1a5ada444c9980e Add script to extract DESC from bug.conf and create a desc.txt (using text file is way better than a VAR) diff -r 2228e0785489 -r 8c3d1f530e15 convert-desc.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/convert-desc.sh Thu Feb 09 18:35:56 2017 +0100 @@ -0,0 +1,24 @@ +#!/bin/sh +# +# Extract bug description from a bug.conf file to create a desc.txt file +# +. /lib/libtaz.sh +check_root +path="$1" + +if [ ! "${path}" ]; then + echo "Usage: $0 path/to/bug" && exit 0 +fi + +cd ${path} + +for bug in * +do + . ./${bug}/bug.conf + echo -n "Converting bug: ${bug} " + echo "${DESC}" > ${bug}/desc.txt + chown www.www ${bug}/desc.txt + status +done + +exit 0