tazbug diff old/convert-desc.sh @ rev 144
mybugs plugin: sho user messages (latest on profile page and full with dedicated page)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 22 23:24:52 2017 +0100 (2017-02-22) |
parents | 76fccc90bed2 |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/old/convert-desc.sh Wed Feb 22 23:24:52 2017 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# Extract bug description from a bug.conf file to create a desc.txt file 1.7 +# 1.8 +. /lib/libtaz.sh 1.9 +check_root 1.10 +path="$1" 1.11 + 1.12 +if [ ! "${path}" ]; then 1.13 + echo "Usage: $0 path/to/bug" && exit 0 1.14 +fi 1.15 + 1.16 +cd ${path} 1.17 + 1.18 +for bug in * 1.19 +do 1.20 + . ./${bug}/bug.conf 1.21 + echo -n "Converting bug: ${bug} " 1.22 + echo "${DESC}" > ${bug}/desc.txt 1.23 + # Clean bug.conf 1.24 + cat > ${bug}/bug.conf << EOT 1.25 +# SliTaz Bug configuration 1.26 + 1.27 +BUG="$BUG" 1.28 +STATUS="$STATUS" 1.29 +PRIORITY="$PRIORITY" 1.30 +CREATOR="$CREATOR" 1.31 +DATE="$DATE" 1.32 +PKGS="$PKGS" 1.33 +EOT 1.34 + unset DESC BUG STATUS PRIORITY CREATOR DATE PKGS 1.35 + chown www.www ${bug}/* 1.36 + status 1.37 +done 1.38 + 1.39 +exit 0