wok diff jwm/receipt @ rev 18760

get-foxit-reader: depends on 'libcups', not 'cups'
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 29 20:38:21 2015 +0200 (2015-12-29)
parents 1067bb7f1e24
children e3f377fbc5f0
line diff
     1.1 --- a/jwm/receipt	Wed Dec 16 15:49:50 2015 +0100
     1.2 +++ b/jwm/receipt	Tue Dec 29 20:38:21 2015 +0200
     1.3 @@ -62,14 +62,14 @@
     1.4  post_install()
     1.5  {
     1.6  	if [ -d "$1/etc/jwm" ]; then
     1.7 -		echo "Removing old system wide configs: $1/etc/jwm"
     1.8 -		rm -rf $1/etc/jwm
     1.9 +		echo "Removing old system wide configs: /etc/jwm"
    1.10 +		rm -rf "$1/etc/jwm"
    1.11  	fi
    1.12 -	res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
    1.13 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
    1.14  	# Adding WM to SLIM available sessions.
    1.15  	if ! echo "$res" | grep -q $PACKAGE; then
    1.16  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    1.17 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $1/etc/slim.conf
    1.18 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
    1.19  		status
    1.20  	fi
    1.21  	true
    1.22 @@ -78,7 +78,7 @@
    1.23  post_remove()
    1.24  {
    1.25  	# Remove WM from SLIM available sessions.
    1.26 -	if grep -q $PACKAGE $1/etc/slim.conf; then
    1.27 -		sed -i s/,$PACKAGE// $1/etc/slim.conf
    1.28 +	if grep -q $PACKAGE "$1/etc/slim.conf"; then
    1.29 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
    1.30  	fi
    1.31  }