wok-next annotate gvfs/stuff/split @ rev 17309
Up buildroot (2014.08)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 02 11:46:58 2014 +0100 (2014-11-02) |
parents | |
children | daaed416b749 |
rev | line source |
---|---|
al@17280 | 1 # Split full gvfs package into gvfs-* packages |
al@17280 | 2 |
al@17280 | 3 if [ "$PACKAGE" == "gvfs" ]; then |
al@17280 | 4 echo |
al@17280 | 5 echo "Check your gvfs upgrade!" |
al@17280 | 6 echo "========================" |
al@17280 | 7 |
al@17280 | 8 echo 'Files not belongs any gvfs* package:' |
al@17280 | 9 for file in $(find $install -type f | sed "s|$install||g" | sort); do |
al@17280 | 10 [ -z "$(grep $file $WOK/gvfs/stuff/list)" ] && echo " $file" |
al@17280 | 11 done |
al@17280 | 12 |
al@17280 | 13 echo 'Absent files:' |
al@17280 | 14 for file in $(sed '/:/ s|[^/]*\(.*\)|\1|g' $WOK/gvfs/stuff/list); do |
al@17280 | 15 [ ! -f "$install/$file" ] && echo " $file" |
al@17280 | 16 done |
al@17280 | 17 |
al@17280 | 18 echo "========================" |
al@17280 | 19 echo |
al@17280 | 20 fi |
al@17280 | 21 |
al@17280 | 22 echo -n "Copying files into package..." |
al@17280 | 23 for file in $(grep "$PACKAGE:" $WOK/gvfs/stuff/list | sed 's|[^/]*\(.*\)|\1|g'); do |
al@17280 | 24 mkdir -p $fs/$(dirname $file) |
al@17280 | 25 cp $install/$file $fs/$file |
al@17280 | 26 done |
al@17280 | 27 status |