# HG changeset patch # User Paul Issott # Date 1511732003 0 # Node ID 772ff37fe0683fb41b80cdbd443e50612f8a7248 # Parent 47059b5d16485a98efd4324016cc329eda145ed8 Tiny edits diff -r 47059b5d1648 -r 772ff37fe068 doc/receipts-v2.md --- a/doc/receipts-v2.md Fri Nov 24 17:20:05 2017 +0200 +++ b/doc/receipts-v2.md Sun Nov 26 21:33:23 2017 +0000 @@ -138,7 +138,7 @@ Additional patterns for the `copy()`: * `@rm` - quick alias for the `remove_already_packed` function: - remove from the current package already copied files, that was already + remove from the current package already copied files that was already packed in any of previously packed packages (within current receipt); * `@ico` - remove all the copied *hicolor* icons (if any) and copy only 16px and 48px variants of *hicolor* icons. @@ -244,13 +244,13 @@ or numbers. It may be "1", "2", "z", or something more meaningful like "pam", "gtk2", or "gtk3". -Also you should know that default set with the empty name is always exists, -for the backward compatibility, and for the cases when you don't want to use +Also you should know that default set with the empty name always exists +for the backward compatibility and for the cases when you don't want to use the sets. How to use the sets? -First, you should define which set you want to use for each package, appending +First, you should define which set you want to use for each package appending package names in the `$SPLIT` variable. You may not make it for the default set with empty name. Few examples: @@ -273,7 +273,7 @@ and then for all the sets you mention in the `$SPLIT` variable on the previous step. You should make the business logic inside the `compile_rules()` function to compile and install different variants based on the value of the `$SET` -variable. This variable has an empty value for the default set, and the set +variable. This variable has an empty value for the default set and the set name in other cases. Few examples how you make the job: ```bash @@ -341,5 +341,5 @@ ``` Thirdly, make `genpkg_rules()` as usual. *Cook* will switch to the required -set automatically, based on conformity between packages and sets, that you +set automatically based on conformity between packages and sets that you described in the `$SPLIT` variable on the first step. That's all. diff -r 47059b5d1648 -r 772ff37fe068 modules/precheck --- a/modules/precheck Fri Nov 24 17:20:05 2017 +0200 +++ b/modules/precheck Sun Nov 26 21:33:23 2017 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # # precheck - module of the SliTaz Cook -# Preliminary checks of the receipt, made before the beginning of work. +# Preliminary checks of the receipt made before the beginning of work. # Copyright (C) SliTaz GNU/Linux - GNU GPL v3 #