slitaz-dev-tools rev 241

mkpkgiso: add SHORT_DESC & WEB_SITE in get.list
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 30 22:31:55 2015 +0200 (2015-04-30)
parents f38bbdf61c95
children 1fe338e52f5c
files mirror-tools/rootfs/usr/bin/mkpkgiso
line diff
     1.1 --- a/mirror-tools/rootfs/usr/bin/mkpkgiso	Mon Apr 13 15:37:06 2015 +0200
     1.2 +++ b/mirror-tools/rootfs/usr/bin/mkpkgiso	Thu Apr 30 22:31:55 2015 +0200
     1.3 @@ -59,7 +59,15 @@
     1.4  			hg update
     1.5  			cd - > /dev/null
     1.6  			case "$i" in
     1.7 -			*/get-scripts) cp $i/* /var/www/slitaz/mirror/packages/get
     1.8 +			*/get-scripts)
     1.9 +				rsync -a $i/* /var/www/slitaz/mirror/packages/get
    1.10 +				for j in /var/www/slitaz/mirror/packages/get/* ; do
    1.11 +					{
    1.12 +					basename $j
    1.13 +					head -n 2 $j | sed '/^SHORT_DESC=/!d;s/.*="\([^"]*\).*/|\1/'
    1.14 +					head -n 2 $j | sed '/^WEB_SITE=/!d;s/.*="\([^"]*\).*/|\1/'
    1.15 +					} | xargs echo
    1.16 +				done > /var/www/slitaz/mirror/packages/get.list
    1.17  			esac
    1.18  		done
    1.19  	done
    1.20 @@ -286,7 +294,7 @@
    1.21  		esac
    1.22  		ln -s $i >> $LOG 2>&1
    1.23  	done
    1.24 -	find * -not -type d | grep -v md5sum | xargs md5sum > md5sum
    1.25 +	find * -not -type d -not -name md5sum -print0 | xargs -0 md5sum > md5sum
    1.26  	echo "$(du -hs $SOURCES | awk '{ print $1 }') used by sources." ;;
    1.27  esac
    1.28  done