cookutils view cooks @ rev 1135

Small improvements and fixes:
1. cook: summary(): skip unpackaged packages (when use CATEGORY="nopack");
2. modules/compressor:
a) move strip_package from "fs" to "install" stage - from this moment files in $install and $fs are identical (of course, if you use genpkg_rules() only for copying) - we may clean taz/*/fs/ in the future;
b) remove "empty" *.mo;
c) skip silly error messages when $install or $fs absent;
3. modules/pack:
a) move symlinks *.so to the @dev;
b) small improvements;
4. doc/cookopts.txt: small update;
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 29 14:12:35 2019 +0200 (2019-01-29)
parents 1520231a65c2
children
line source
1 #!/bin/sh
2 # Cook specified package and then cook all the split packages
3 # that build from the files of just built 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 in the SPLIT.
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 insignificant.
29 [ "${splitted/$pkg-dev/}" == "$splitted" ] && splitted="$pkg-dev $splitted"
31 # (re-)cook all existing packages
32 for i in $splitted; do
33 [ -d "$WOK/$i" ] && cook $i
34 done
36 # TODO: check the "split quality": whether the file belongs to a few (or not one) packages
38 exit 0