Tweaks to build process for embedded scripts
authorRon Yorston <rmy@pobox.com>
Wed, 21 Nov 2018 10:11:01 +0000 (10:11 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 27 Nov 2018 09:38:10 +0000 (10:38 +0100)
commit7b42f8fc76d78fe9c6b0cbe15e1425f2fd9fb5e8
treec18d535a6a1821a683f2bebf0370c1d77c4d86a1
parentdffc8ff6a638a4ae865821eb2d0852124c096c11
Tweaks to build process for embedded scripts

- Force a rebuild if a script in applets_sh is changed.

- Move the dummy usage messages for custom applets to usage.h and
  change the name from 'dummy' to 'scripted'.

- Hide an error from gen_build_files.sh if an embed directory exists
  but is empty.

- Tidy up embedded_scripts script.

v2: Remove a couple of unnecessary tests in embedded_scripts, as
    pointed out by Xabier Oneca.
    Drop the stripping of comments.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Makefile
include/applets.src.h
include/usage.src.h
scripts/embedded_scripts
scripts/gen_build_files.sh