3 # with $'\r' terminator in this file.
8 ############################################
10 ############################################
16 # assign string without quote.
17 # and test some punct chars. espacially in file
19 # @, %, ^, _, =, -, :, /, ., ,, [, ], without mask.
20 # ", $, \, `, special char in "" string and cmdline.
21 # (, ), <, >, &, |, ;, #, ', special char in cmdline.
22 # {}, ?, *, +, ~, !, globbing subst char. if cannot be glob, use char itself.
27 SRC_FILE=lib/Lib/SQLTGA/MemBlk.c
30 # assign string with quote.
32 # and include $, \, `, " with \ prefix.
34 ENVAR_TEST2="a b cd e f)"
35 # TBD: if there is "'" in init str, it leading err.
36 # use '\'' in imivalstr='' string
37 ENVAR_TEST2="a b c\$\\\`\"d e f"
40 # configable parameter define
42 # TBD: ${SRCPKG_DIR} expanssioned in _EVL string.
43 OUTDIR_${CFG_OPT1:+Y}_EVL='${SRCPKG_DIR}/build/output' # xxx
45 # init string contains '='.
47 FLAGS_ARCH_${ARCH_CPU:+Y}_EVL="-mcpu=${ARCH_CPU}"
52 EXT_NAME[dephdr]=".dephdr"
53 EXT_NAME[cgraph]=".cgraph"
56 # TBD: ?? loading error by loadenv?
57 VAR_ARRAY=(first "second one" thirdone "" misc )
60 OUTDIR_EVL='${SRCPKG_DIR}/build/output' # xxx
61 DEST_CFG_DIR_NAME_EVL='dest-${DEST_NAME}'
62 OBJDIR_EVL='${OUTDIR}/${DEST_CFG_DIR_NAME}/obj'
63 CFLAGS_DEF_LIST_FILE_Y_EVL='${SRCPKG_DIR}/build/dest/$DEST_CFG_DIR_NAME/CFLAGS-DEF.list'
65 # multi-line string init
88 exe dll drv lib libdll unitlib unitlibdll
90 hostutils exelist objlist
95 # init with complex cmd string which contains special char like '\' & '"' & '$' & '.' & '*'.
96 DSTFILE_FMT='${OUTDIR}/$(echo -n "$SRC_FILE" | sed -E "s/(.*)\..*/\1/g" | xargs basename)$(envar EXT_NAME[${DEST_TYPE}])'
97 OBJFILE_FMT='${OUTDIR}/${DEST_CFG_DIR_NAME}/obj/$(echo -n "$SRC_FILE" | sed -E "s/(.*)\..*/\1/g")$(envar EXT_NAME[obj])'
98 DEPFILE_FMT='${OUTDIR}/${DEST_CFG_DIR_NAME}/obj/$(echo -n "$SRC_FILE" | sed -E "s/(.*)\..*/\1/g")$(envar EXT_NAME[dephdr])'
99 CGRAPHFILE_FMT='${OUTDIR}/${DEST_CFG_DIR_NAME}/obj/$(echo -n "$SRC_FILE" | sed -E "s/(.*)\..*/\1/g")$(envar EXT_NAME[cgraph])'
101 # array access in cmd.
102 TEST_STR_EVL='$(envar VAR_MULTI_LINE_ARR[2])'