diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-01-03 18:33:23 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-01-03 18:33:23 +0100 |
commit | 75cb688486da3ea2326d9a9f7f84031df719811b (patch) | |
tree | 12dce53ac2f164c4bc5a5da9924480dba4d20db4 /samples | |
parent | 24711bbfbe462b49724b5d0ff17c4dc919859efc (diff) | |
download | crosstool-ng-75cb688486da3ea2326d9a9f7f84031df719811b.tar.gz crosstool-ng-75cb688486da3ea2326d9a9f7f84031df719811b.tar.bz2 crosstool-ng-75cb688486da3ea2326d9a9f7f84031df719811b.zip |
samples: fix displaying samples
Diffstat (limited to 'samples')
-rw-r--r-- | samples/samples.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/samples/samples.mk b/samples/samples.mk index 18b126a5..4447246e 100644 --- a/samples/samples.mk +++ b/samples/samples.mk @@ -4,7 +4,12 @@ # Build the list of available samples CT_TOP_SAMPLES := $(patsubst $(CT_TOP_DIR)/samples/%/crosstool.config,%,$(wildcard $(CT_TOP_DIR)/samples/*/crosstool.config)) CT_LIB_SAMPLES := $(filter-out $(CT_TOP_SAMPLES),$(patsubst $(CT_LIB_DIR)/samples/%/crosstool.config,%,$(wildcard $(CT_LIB_DIR)/samples/*/crosstool.config))) -CT_SAMPLES := $(sort $(CT_TOP_SAMPLES) $(CT_LIB_SAMPLES)) +CT_SAMPLES := $(shell echo $(sort $(CT_TOP_SAMPLES) $(CT_LIB_SAMPLES)) \ + |sed -r -e 's/ /\n/g;' \ + |sed -r -e 's/(.*),(.*)/\2,\1/;' \ + |LC_ALL=C sort \ + |sed -r -e 's/(.*),(.*)/\2,\1/;' \ + ) # ---------------------------------------------------------- # This part deals with the samples help entries @@ -39,7 +44,7 @@ $(patsubst %,show-%,$(CT_SAMPLES)): # print the list of all available samples PHONY += list-samples list-samples: FORCE - @echo $(CT_SAMPLES) |$(sed) -r -e 's/ /\n/g;' |sort + @echo $(CT_SAMPLES) |$(sed) -r -e 's/ /\n/g;' wiki-samples: $(SILENT)$(CT_LIB_DIR)/scripts/showSamples.sh -w $(CT_SAMPLES) |