wok-6.x rev 10764
asterisk-sound*: check $src
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 31 12:22:28 2011 +0200 (2011-05-31) |
parents | 84d10fcd74e8 |
children | d885e7a20459 |
files | asterisk-sound-fr/receipt asterisk-sound/receipt |
line diff
1.1 --- a/asterisk-sound-fr/receipt Tue May 31 12:16:34 2011 +0200 1.2 +++ b/asterisk-sound-fr/receipt Tue May 31 12:22:28 2011 +0200 1.3 @@ -14,7 +14,7 @@ 1.4 compile_rules() 1.5 { 1.6 if [ ! -d $DESTDIR/var ]; then 1.7 - cd $src 1.8 + cd $src || return 1 1.9 lang=${PACKAGE#asterisk-sound-} 1.10 mkdir -p $DESTDIR/var/lib/asterisk/sounds/$lang 1.11 mv * $DESTDIR/var/lib/asterisk/sounds/$lang
2.1 --- a/asterisk-sound/receipt Tue May 31 12:16:34 2011 +0200 2.2 +++ b/asterisk-sound/receipt Tue May 31 12:22:28 2011 +0200 2.3 @@ -13,11 +13,10 @@ 2.4 # Rules to configure and make the package. 2.5 compile_rules() 2.6 { 2.7 - if [ ! -d $DESTDIR/var ]; then 2.8 - cd $src 2.9 - mkdir -p $DESTDIR/var/lib/asterisk/sounds 2.10 - mv * $DESTDIR/var/lib/asterisk/sounds 2.11 - fi 2.12 + [ ! -d $DESTDIR/var ] && 2.13 + cd $src && 2.14 + mkdir -p $DESTDIR/var/lib/asterisk/sounds && 2.15 + mv * $DESTDIR/var/lib/asterisk/sounds && 2.16 } 2.17 2.18 # Rules to gen a SliTaz package suitable for Tazpkg.