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

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 08:28:10 2019 +0100 (2019-02-26)
parents 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