tiny-slitaz rev 2

Auto-update files.list.lzma (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 21 18:15:37 2012 +0200 (2012-08-21)
parents d203aafad141
children 88f125559bc3
files helper pkgs/mklists
line diff
     1.1 --- a/helper	Tue Aug 21 11:16:18 2012 +0200
     1.2 +++ b/helper	Tue Aug 21 18:15:37 2012 +0200
     1.3 @@ -3,9 +3,11 @@
     1.4  
     1.5  init()
     1.6  {
     1.7 -	PKGS=$(dirname $(readlink pkgs/base-tiny*))
     1.8 -	[ $PKGS/$(ls -tr $PKGS | tail -n 1) -nt pkgs/files.list.lzma ] &&
     1.9 -	pkgs/mklists
    1.10 +	[ "$(ls -t pkgs | sed q)" == "files.list.lzma" ] ||
    1.11 +	for i in pkgs/*/receipt ; do
    1.12 +		. $i
    1.13 +		sed "s/^/$PACKAGE: /" $(dirname $i)/files.list
    1.14 +	done | lzma e pkgs/files.list.lzma -si
    1.15  }
    1.16  
    1.17  list_pkgs()
     2.1 --- a/pkgs/mklists	Tue Aug 21 11:16:18 2012 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,13 +0,0 @@
     2.4 -#!/bin/sh
     2.5 -
     2.6 -PKGS=/var/www/slitaz/mirror/packages/tiny
     2.7 -
     2.8 -cd $(dirname $0)
     2.9 -for i in $(ls $PKGS/); do [ -e $i ] || ln -s $PKGS/$i; done
    2.10 -
    2.11 -for i in */receipt ; do
    2.12 -	. $i
    2.13 -	while read line; do
    2.14 -		echo "$PACKAGE: $line"
    2.15 -	done < $(dirname $i)/files.list
    2.16 -done | lzma e files.list.lzma -si