wok annotate gvfs/stuff/split @ rev 19973
Up slitaz-boot-scripts (440)
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu Jun 08 01:15:54 2017 -0400 (2017-06-08) |
parents | 96fd065ed4ea |
children | 02c70d036ea0 |
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 |
pascal@17506 | 27 mkdir -p $fs/usr/share/gvfs/remote-volume-monitors |
al@17280 | 28 status |