summaryrefslogtreecommitdiff
path: root/samples/samples.mk
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-14 21:30:27 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-14 21:30:27 (GMT)
commitc8a68d987b4332bc57e8fe9e75ad7d5d4297d880 (patch)
treeb438da88441655545ca568a3ff2a03416ed5753c /samples/samples.mk
parentcb5b60fc07784346c527e93ceff5d656bef20712 (diff)
Introduce the notion of a 'sample comment'.
- presence of the sample's reported.by file is now mandatory. - when saving a sample, reporter name & URL are queried, to avoid operator forget about creating the reported.by file. - when saving a sample, one can store a few-liner comment. - when recalling a sample, the reporter name, URL and comment (if present) are printed. - update the powerpc-e500v2-linux-gnuspe sample to include Nate's comment (from his original mail). - update all samples that were missing the reported.by file. /trunk/scripts/saveSample.sh | 46 35 11 0 ++++++++++++++++++------ /trunk/scripts/showSamples.sh | 12 6 6 0 +++--- /trunk/samples/powerpc-e500v2-linux-gnuspe/reported.by | 15 15 0 0 ++++++++ /trunk/samples/samples.mk | 22 17 5 0 +++++++++-- 4 files changed, 73 insertions(+), 22 deletions(-)
Diffstat (limited to 'samples/samples.mk')
-rw-r--r--samples/samples.mk22
1 files changed, 17 insertions, 5 deletions
diff --git a/samples/samples.mk b/samples/samples.mk
index fc0581f..5ea7276 100644
--- a/samples/samples.mk
+++ b/samples/samples.mk
@@ -35,18 +35,30 @@ PHONY += $(CT_SAMPLES)
$(CT_SAMPLES):
@cp $(call sample_dir,$@)/crosstool.config .config
@$(MAKE) -rf $(CT_NG) oldconfig
+ @echo
+ @echo '***********************************************************'
+ @echo
+ @( . $(call sample_dir,$@)/reported.by; \
+ echo "Initially reported by: $${reporter_name:-Yann E. MORIN}"; \
+ echo "URL: $${reporter_url:-http://ymorin.is-a-geek.org/}"; \
+ if [ -n "$${reporter_comment}" ]; then \
+ echo ; \
+ echo "Comment:"; \
+ printf "$${reporter_comment}\n"; \
+ fi; \
+ echo ; \
+ echo '***********************************************************'; \
+ )
@if grep -E '^CT_EXPERIMENTAL=y$$' .config >/dev/null 2>&1; then \
- echo ''; \
- echo '***********************************************************'; \
- echo ''; \
+ echo ; \
echo 'WARNING! This sample may enable experimental features.'; \
echo ' Please be sure to review the configuration prior'; \
echo ' to building and using your toolchain!'; \
echo 'Now, you have been warned!'; \
- echo ''; \
+ echo ; \
echo '***********************************************************'; \
- echo ''; \
fi
+ @echo
@echo 'Now configured for "$@"'
# The 'sample_dir' function prints the directory in which the sample is,