wok diff awesome/receipt @ rev 3143
Fix: Freetype1 include dir path
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Thu May 21 10:00:14 2009 +0000 (2009-05-21) |
parents | d309f58d5d7c |
children | 5b127b495311 |
line diff
1.1 --- a/awesome/receipt Sun May 17 15:14:53 2009 +0200 1.2 +++ b/awesome/receipt Thu May 21 10:00:14 2009 +0000 1.3 @@ -31,3 +31,22 @@ 1.4 cp -a $_pkg/usr/share $fs/usr 1.5 } 1.6 1.7 +post_install() 1.8 +{ 1.9 + res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` 1.10 + # Adding WM to SLIM available sessions. 1.11 + if ! echo "$res" | grep -q $PACKAGE; then 1.12 + echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.13 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf 1.14 + status 1.15 + fi 1.16 +} 1.17 + 1.18 +post_remove() 1.19 +{ 1.20 + # Remove WM from SLIM available sessions. 1.21 + if grep -q $PACKAGE $1/etc/slim.conf; then 1.22 + sed -i s/,$PACKAGE// $1/etc/slim.conf 1.23 + fi 1.24 +} 1.25 +