slitaz-arm rev 48

spi: small start for release
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 09 20:24:03 2014 +0100 (2014-03-09)
parents 9b97790e8d8f
children 27666463d629
files spi
line diff
     1.1 --- a/spi	Sun Mar 09 17:09:01 2014 +0100
     1.2 +++ b/spi	Sun Mar 09 20:24:03 2014 +0100
     1.3 @@ -462,6 +462,19 @@
     1.4  	
     1.5  	clone-fw)
     1.6  		clone_fw ;;
     1.7 +		
     1.8 +	release)
     1.9 +		# Used to release official SliTaz RPi images
    1.10 +		cd ${distro} || exit 1
    1.11 +		if [ ! "$flavor" ]; then
    1.12 +			. $distro/rootfs/etc/slitaz/flavor.conf || exit 1
    1.13 +			flavor="$FLAVOR"
    1.14 +		fi
    1.15 +		dirname="slitaz-$flavor-$(date +%Y%m%d)"
    1.16 +		dsize=$(du -sh $distro | awk '{print $1}' | cut -d "." -f 1)
    1.17 +		mkdir ${dirname}
    1.18 +		# To be continued...
    1.19 +		;;
    1.20  	
    1.21  	clean)
    1.22  		echo "Cleaning: $rpi"