tazwok rev 31

Copy only PNG and/or XPM pixmaps
author Christophe Lincoln <pankso@slitaz.org>
date Wed Feb 06 17:12:24 2008 +0100 (2008-02-06)
parents bb6138c3a596
children 9fc3d6b2ec42
files tazwok
line diff
     1.1 --- a/tazwok	Wed Feb 06 15:27:57 2008 +0100
     1.2 +++ b/tazwok	Wed Feb 06 17:12:24 2008 +0100
     1.3 @@ -301,12 +301,15 @@
     1.4  			done
     1.5  		fi
     1.6  	fi
     1.7 -	# Pixmaps. Some icons/images can be add trough genpkg_rules and
     1.8 -	# generic copy can be disable with GENERIC_PIXMAPS="no" in pkg receipt.
     1.9 +	# Pixmaps (PNG or/and XPM only). Some icons/images can be add trough 
    1.10 +	# genpkg_rules and generic copy can be disable with GENERIC_PIXMAPS="no"
    1.11 +	# in pkg receipt.
    1.12  	if [ ! "$GENERIC_PIXMAPS" = "no" ]; then
    1.13  		if [ -d "$_pkg/usr/share/pixmaps" ]; then
    1.14  			mkdir -p $fs/usr/share/pixmaps
    1.15 -			cp -a $_pkg/usr/share/pixmaps/$PACKAGE.* \
    1.16 +			cp -a $_pkg/usr/share/pixmaps/$PACKAGE.png \
    1.17 +				$fs/usr/share/pixmaps 2>/dev/null
    1.18 +			cp -a $_pkg/usr/share/pixmaps/$PACKAGE.xpm \
    1.19  				$fs/usr/share/pixmaps 2>/dev/null
    1.20  		fi
    1.21  		# Custom or home made PNG pixmap can be in stuff.