wok-current rev 19847
Up sdft (170314): fix lines order (in all processed .desktop files)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Mar 14 21:00:20 2017 +0200 (2017-03-14) |
parents | e555bc1b6fa5 |
children | 7c4116e3377f |
files | sdft/receipt sdft/stuff/sdft |
line diff
1.1 --- a/sdft/receipt Tue Mar 14 20:18:44 2017 +0200 1.2 +++ b/sdft/receipt Tue Mar 14 21:00:20 2017 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="sdft" 1.7 -VERSION="161116" 1.8 +VERSION="170314" 1.9 CATEGORY="development" 1.10 SHORT_DESC="SliTaz Desktop Files Tools" 1.11 MAINTAINER="al.bobylev@gmail.com"
2.1 --- a/sdft/stuff/sdft Tue Mar 14 20:18:44 2017 +0200 2.2 +++ b/sdft/stuff/sdft Tue Mar 14 21:00:20 2017 +0200 2.3 @@ -1,9 +1,9 @@ 2.4 #!/bin/sh 2.5 # sdft - SliTaz Desktop Files Tools 2.6 # - tools for editing and pretty printing .desktop files for SliTaz Linux 2.7 -# Aleksej Bobylev <al.bobylev@gmail.com>, 2014-2016 2.8 +# Aleksej Bobylev <al.bobylev@gmail.com>, 2014-2017 2.9 2.10 -VERSION="161116" 2.11 +VERSION="170314" 2.12 2.13 ### functions ### 2.14 usage() { 2.15 @@ -39,7 +39,7 @@ 2.16 } 2.17 2.18 extract() { 2.19 - local EX=${1//[/\[}; EX=${EX//]/\]} 2.20 + local EX="${1//[/\[}"; EX="${EX//]/\]}" 2.21 grep -e "^$EX=" $WORKING/section 2.22 sed -i "/^$EX=/d" $WORKING/section 2.23 }