1# Copyright: 2020 Masatake YAMATO 2# License: GPL-2 3 4CTAGS=$1 5O="--quiet --options=NONE " 6 7echo '# single with no curly bracket' 8${CTAGS} $O \ 9 --extras=+p --pseudo-tags=TAG_PROGRAM_URL \ 10 -o - \ 11 input.c 12 13echo '# single with curly bracket' 14${CTAGS} $O \ 15 --extras=+p --pseudo-tags='{TAG_PROGRAM_URL}' \ 16 -o - \ 17 input.c 18 19echo '# single with + no curly bracket' 20${CTAGS} $O \ 21 --extras=+p --pseudo-tags= \ 22 --pseudo-tags=+TAG_PROGRAM_URL \ 23 -o - \ 24 input.c 25 26echo '# single with + curly bracket' 27${CTAGS} $O \ 28 --extras=+p --pseudo-tags= \ 29 --pseudo-tags=+'{TAG_PROGRAM_URL}' \ 30 -o - \ 31 input.c 32 33echo '# single with +- no curly bracket' 34${CTAGS} $O \ 35 --extras=+p --pseudo-tags= \ 36 --pseudo-tags=+TAG_PROGRAM_VERSION \ 37 --pseudo-tags=+TAG_PROGRAM_URL \ 38 --pseudo-tags=-TAG_PROGRAM_VERSION \ 39 -o - \ 40 input.c 41 42echo '# single with +- curly bracket' 43${CTAGS} $O \ 44 --extras=+p --pseudo-tags= \ 45 --pseudo-tags=+'{TAG_PROGRAM_VERSION}' \ 46 --pseudo-tags=+'{TAG_PROGRAM_URL}' \ 47 --pseudo-tags=-'{TAG_PROGRAM_VERSION}' \ 48 -o - \ 49 input.c 50 51echo '# multiple specifications with +- curly bracket' 52${CTAGS} $O \ 53 --extras=+p --pseudo-tags= \ 54 --pseudo-tags='+{TAG_PROGRAM_VERSION}{TAG_FILE_SORTED}{TAG_PROGRAM_URL}-{TAG_PROGRAM_VERSION}' \ 55 -o - \ 56 input.c 57 58echo '# multiple specifications with -+- curly bracket' 59${CTAGS} $O \ 60 --extras=+p --pseudo-tags= \ 61 --pseudo-tags='-{TAG_PROGRAM_VERSION}+{TAG_PROGRAM_VERSION}{TAG_FILE_FORMAT}{TAG_PROGRAM_URL}-{TAG_PROGRAM_VERSION}' \ 62 -o - \ 63 input.c 64