wok-current rev 18554

sdft: fix fail when '/' in Name
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Nov 08 01:21:45 2015 +0200 (2015-11-08)
parents dbc0a79fe19d
children 0cfeeab67116
files sdft/receipt sdft/stuff/sdft
line diff
     1.1 --- a/sdft/receipt	Sat Nov 07 23:36:54 2015 +0200
     1.2 +++ b/sdft/receipt	Sun Nov 08 01:21:45 2015 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="sdft"
     1.7 -VERSION="140717"
     1.8 +VERSION="151108"
     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	Sat Nov 07 23:36:54 2015 +0200
     2.2 +++ b/sdft/stuff/sdft	Sun Nov 08 01:21:45 2015 +0200
     2.3 @@ -1,9 +1,9 @@
     2.4  #!/bin/sh
     2.5  # sdft - SliTaz Desktop Files Tools
     2.6  #      - tools for edit and pretty print .desktop files for SliTaz GNU/Linux
     2.7 -# Aleksej Bobylev <al.bobylev@gmail.com>, 2014
     2.8 +# Aleksej Bobylev <al.bobylev@gmail.com>, 2014-2015
     2.9  
    2.10 -VERSION="040717"
    2.11 +VERSION="151108"
    2.12  
    2.13  ### functions ###
    2.14  usage() {
    2.15 @@ -44,7 +44,7 @@
    2.16  	local IT_NAME="$1" IT_CONTENT
    2.17  	IT_CONTENT=$(extract "$IT_NAME" | sed "s|$IT_NAME=\(.*\)|\1|")
    2.18  	[ "x$IT_CONTENT" != x ] && echo "$IT_NAME=$IT_CONTENT"
    2.19 -	extract "$IT_NAME[.*]" | sort | sed -n "/$IT_NAME\[.*\]=$IT_CONTENT$/!p"
    2.20 +	extract "$IT_NAME[.*]" | sort #| sed -n "/$IT_NAME\[.*\]=$IT_CONTENT$/!p"
    2.21  }
    2.22  semicolon() {
    2.23  	sed -e 's|.*|&;|' -e 's|;;|;|g'