wok rev 6459
firefox-dev: wipe old versions
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 29 15:38:02 2010 +0200 (2010-09-29) |
parents | f738eac85dcf |
children | 8ce6203e1c3a |
files | firefox-dev/receipt |
line diff
1.1 --- a/firefox-dev/receipt Wed Sep 29 01:19:07 2010 +0000 1.2 +++ b/firefox-dev/receipt Wed Sep 29 15:38:02 2010 +0200 1.3 @@ -37,3 +37,15 @@ 1.4 # fix version 1.5 sed -i "s/3\.5\../$VERSION/" $fs/usr/lib/pkgconfig/* 1.6 } 1.7 + 1.8 +# Pre and post install commands for Tazpkg. 1.9 +post_install() 1.10 +{ 1.11 + for i in usr/share/idl/firefox- usr/include/firefox- \ 1.12 + usr/lib/firefox-devel- ; do 1.13 + for j in $(ls -d $1/$i*); do 1.14 + [ "${j##*-}" = "$VERSION" ] && continue 1.15 + rm -rf $j 1.16 + done 1.17 + done 1.18 +}