Generate prefix-line macroses of templates

This commit is contained in:
Stas Degteff 2005-11-07 16:25:33 +00:00
parent 6356312c3e
commit c3f916cb95

View File

@ -26,11 +26,19 @@ clean:
tokentpl.txt: ../golded3/gemsgs.cpp tokentpl.txt: ../golded3/gemsgs.cpp
echo '* Golded+ macroses list.' > $@ echo '* Golded+ macroses list.' > $@
echo '==========================================================================' >> $@
echo '* These macroses may be used in:' >> $@ echo '* These macroses may be used in:' >> $@
echo '* template file, externutil command line, tearline and tagline.' >> $@ echo '* template file, externutil command line, tearline and tagline.' >> $@
echo '==========================================================================' >> $@ echo '==========================================================================' >> $@
grep tokenxchg $< | sed -ne 's/^.*"\(@\w*\)".*$$/\1/p' | sort -u >> $@ grep tokenxchg $< | sed -ne 's/^.*"\(@\w*\)".*$$/\1/p' | sort -u >> $@
# grep tokenxchg $< | sed -e '/^static bool tokenxchg/d' -e 's/^.*"\(@\w*\)".*$$/\1/' | sort -u >> $@ @echo '==========================================================================' >> $@
echo '* These macroses is line prefixes for the template file.' >> $@
@echo '==========================================================================' >> $@
cat ../golded3/getpls.cpp | sed -ne '/CSTR_COMMA_SIZEOF_CSTR/s/\s*{\s*CSTR_COMMA_SIZEOF_CSTR("\(\w*\)")\s*},\{0,1\}/@\1/p'| sort -u >> $@
@echo '==========================================================================' >> $@
# { CSTR_COMMA_SIZEOF_CSTR("write") },
# { CSTR_COMMA_SIZEOF_CSTR("header") }
tokencfg.txt: ../golded3/gccfgg.h tokencfg.txt: ../golded3/gccfgg.h
@echo '* Golded+ config file tokens list.' > $@ @echo '* Golded+ config file tokens list.' > $@