Fix tokencfg.txt and tokentpl.txt genegation

This commit is contained in:
Stas Degteff 2005-10-02 11:48:28 +00:00
parent 3ba796c5fb
commit 0d2c8b8cbe

View File

@ -28,12 +28,10 @@ tokentpl.txt: ../golded3/gemsgs.cpp
echo '* Golded+ macroses list.' > $@ echo '* Golded+ macroses list.' > $@
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 '* \$$Id$$' >> $@
echo '==========================================================================' >> $@ echo '==========================================================================' >> $@
grep tokenxchg $< | sed -e '/^static bool tokenxchg/d' -e 's/^.*"\(@\w*\)".*$$/\1/' | sort -u >> $@ grep tokenxchg $< | sed -e '/^static bool tokenxchg/d' -e 's/^.*"\(@\w*\)".*$$/\1/' | sort -u >> $@
tokencfg.txt: ../golded3/gccfgg.h tokencfg.txt: ../golded3/gccfgg.h
@echo '* Golded+ config file tokens list.' > $@ @echo '* Golded+ config file tokens list.' > $@
@echo '* \$$Id$$' >> $@
@echo '==========================================================================' >> $@ @echo '==========================================================================' >> $@
grep CRC_ $< | sed -e '/CRC_LAST_CRC/d' -e 's/^.* CRC_\(\w*\).*$$/\1/' | sort -u >> $@ grep CRC_ $< | sed -e '/CRC_LAST_CRC/d' -e 's/^.* CRC_\(\w*\).*$$/\1/' | sort -u >> $@