tazbug view old/convert-desc.sh @ rev 113

Box is not longer maintained as weel as cmdline bug posts (+ is insecure)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 11 00:21:42 2017 +0100 (2017-02-11)
parents convert-desc.sh@76fccc90bed2
children
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 # Clean bug.conf
21 cat > ${bug}/bug.conf << EOT
22 # SliTaz Bug configuration
24 BUG="$BUG"
25 STATUS="$STATUS"
26 PRIORITY="$PRIORITY"
27 CREATOR="$CREATOR"
28 DATE="$DATE"
29 PKGS="$PKGS"
30 EOT
31 unset DESC BUG STATUS PRIORITY CREATOR DATE PKGS
32 chown www.www ${bug}/*
33 status
34 done
36 exit 0