mkimage-profiles/features.in/00example/generate.sh

21 lines
603 B
Bash
Raw Normal View History

#!/bin/sh
# this script is run during an individual feature configuration
# (that is, while building the actual profile from subprofiles
# and requested features); it can be more comfortable for extensive
# shell scripting than embedding into a makefile recipe with all
# the quoting and so on
#
# please note, it runs *after* copying subdirectories corresponding
# to requested subprofiles and *before* running generate.sh, see also
# features.in/Makefile
#
# for a real-world example, see syslinux feature
# route stdout to stderr
exec >&2
# dump environment
echo "--- $0 ---"
env
echo "--- $0 ---"