wok-next diff pekwm/receipt @ rev 18925
description.txt should end with 0x0A byte (Carriage Return, Enter) to not glue with the next description in descriptions.txt.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Feb 25 15:02:38 2016 +0200 (2016-02-25) |
parents | 5d53e8ccbc8d |
children | 757d032c55c7 |
line diff
1.1 --- a/pekwm/receipt Thu Jan 08 02:04:05 2015 +0200 1.2 +++ b/pekwm/receipt Thu Feb 25 15:02:38 2016 +0200 1.3 @@ -46,17 +46,17 @@ 1.4 # Pekwm searches for default font path (100dpi folder) for xsever to render 1.5 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts 1.6 # by linking to ttf-dejavu 1.7 - if [ ! -d $1/usr/share/fonts/X11/100dpi/ ]; then 1.8 - mkdir -p $1/usr/share/fonts/X11/100dpi 1.9 - cd $1/usr/share/fonts/X11/100dpi 1.10 + if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then 1.11 + mkdir -p "$1/usr/share/fonts/X11/100dpi" 1.12 + cd "$1/usr/share/fonts/X11/100dpi" 1.13 ln -s ../../truetype/ttf-dejavu/* . 1.14 fi 1.15 1.16 - res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` 1.17 + res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 1.18 # Adding WM to SLIM available sessions. 1.19 if ! echo "$res" | grep -q $PACKAGE; then 1.20 echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.21 - sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf 1.22 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" 1.23 status 1.24 fi 1.25 } 1.26 @@ -64,7 +64,7 @@ 1.27 post_remove() 1.28 { 1.29 # Remove WM from SLIM available sessions. 1.30 - if grep -q $PACKAGE $1/etc/slim.conf; then 1.31 - sed -i s/,$PACKAGE// $1/etc/slim.conf 1.32 + if grep -q $PACKAGE "$1/etc/slim.conf"; then 1.33 + sed -i s/,$PACKAGE// "$1/etc/slim.conf" 1.34 fi 1.35 }