tazbug rev 103

Improve convert to desc.txt
author Christophe Lincoln <pankso@slitaz.org>
date Fri Feb 10 17:05:42 2017 +0100 (2017-02-10)
parents 6254414d1424
children 6f798394f27e
files convert-desc.sh
line diff
     1.1 --- a/convert-desc.sh	Fri Feb 10 16:57:35 2017 +0100
     1.2 +++ b/convert-desc.sh	Fri Feb 10 17:05:42 2017 +0100
     1.3 @@ -14,11 +14,23 @@
     1.4  
     1.5  for bug in *
     1.6  do
     1.7 -	 . ./${bug}/bug.conf
     1.8 -	 echo  -n "Converting bug: ${bug} "
     1.9 -	 echo "${DESC}" > ${bug}/desc.txt
    1.10 -	 chown www.www ${bug}/desc.txt
    1.11 -	 status
    1.12 +	. ./${bug}/bug.conf
    1.13 +	echo  -n "Converting bug: ${bug} "
    1.14 +	echo "${DESC}" > ${bug}/desc.txt
    1.15 +	# Clean bug.conf
    1.16 +	cat > ${bug}/bug.conf << EOT
    1.17 +# SliTaz Bug configuration
    1.18 +
    1.19 +BUG="$BUG"
    1.20 +STATUS="$STATUS"
    1.21 +PRIORITY="$PRIORITY"
    1.22 +CREATOR="$CREATOR"
    1.23 +DATE="$DATE"
    1.24 +PKGS="$PKGS"
    1.25 +EOT
    1.26 +	unset DESC BUG STATUS PRIORITY CREATOR DATE PKGS
    1.27 +	chown www.www ${bug}/*
    1.28 +	status
    1.29  done
    1.30  
    1.31  exit 0