tazbug view convert-desc.sh @ rev 97

Add script to extract DESC from bug.conf and create a desc.txt (using text file is way better than a VAR)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Feb 09 18:35:56 2017 +0100 (2017-02-09)
parents
children 76fccc90bed2
line source
1 #!/bin/sh
2 #
3 # Extract bug description from a bug.conf file to create a desc.txt file
4 #
5 . /lib/libtaz.sh
6 check_root
7 path="$1"
9 if [ ! "${path}" ]; then
10 echo "Usage: $0 path/to/bug" && exit 0
11 fi
13 cd ${path}
15 for bug in *
16 do
17 . ./${bug}/bug.conf
18 echo -n "Converting bug: ${bug} "
19 echo "${DESC}" > ${bug}/desc.txt
20 chown www.www ${bug}/desc.txt
21 status
22 done
24 exit 0