cookutils view cook.site @ 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 54c97f545127
children
line source
1 # /etc/slitaz/cook.site: Default options passed to ./configure in SliTaz
2 #
3 # This file is used since we can't export these variables, but configure
4 # handles CONFIG_SITE and will source this file automatically.
5 #
6 # If you want to use your own cook.site, you can use:
7 # export CONFIG_SITE=config.site in compile_rules() of a receipt.
8 #
10 # Find receipt (backward recursively from current dir)
11 receiptpath=$(realpath .)
12 until [ -z "$receiptpath" -o -e "$receiptpath/receipt" ]; do
13 receiptpath="${receiptpath%/*}"
14 done
17 # Default options.
18 prefix="/usr"
20 case $sysconfdir in
21 /etc*) ;;
22 *) sysconfdir="/etc";;
23 esac
25 case $localstatedir in
26 /var*) ;;
27 *) localstatedir="/var";;
28 esac
30 datarootdir="$prefix/share"
31 #datadir="$datarootdir" # respect "kbd" receipt
32 infodir="$datarootdir/info"
33 localedir="$datarootdir/locale"
34 mandir="$datarootdir/man"
35 docdir="$datarootdir/doc/$(. $receiptpath/receipt; echo $PACKAGE-$VERSION)"
37 unset receiptpath