cookutils view cooks @ rev 851

cooker.cgi: browse cooking only
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 19 09:38:36 2016 +0100 (2016-12-19)
parents
children b445a91a8be7
line source
1 #!/bin/sh
2 # Cook specified package and then cook all the splitted packages
3 # that builds from the files of just builded package
5 case "$1" in
6 --help|-h)
7 cat <<EOT
8 Usage: cooks <package>
10 Cook the specified package and then cook all the packages defined in the
11 SPLIT variable in the package receipt.
12 Note, *-dev packages are implicit and usually omitted.
14 EOT
15 exit 0
16 ;;
17 esac
19 pkg="$1"
20 . /etc/slitaz/cook.conf
22 cook "$pkg"
24 # Get the list
25 splitted=$(SPLIT=''; . $WOK/$pkg/receipt; echo $SPLIT)
27 # $SPLIT may contain the "*-dev" somewhere already if cooking order is significant.
28 # Cook the "*-dev" first if order is unsignificant.
29 [ "${splitted/$pkg-dev/}" == "$splitted" ] && splitted="$pkg-dev $splitted"
31 # (re-)cook all existed packages
32 for i in $splitted; do
33 [ -d "$WOK/$i" ] && cook $i
34 done
36 exit 0