Changeset ceb9ea4 in wspkg


Ignore:
Timestamp:
Feb 28, 2019, 9:41:29 PM (14 months ago)
Author:
Ting-Wei Lan <lantw44@…>
Branches:
master
Parents:
a2c0986
Message:

Use ${var} instead of $var when referencing user-defined variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wspkg-sh/packages-cpp.sh

    ra2c0986 rceb9ea4  
    1616    case "$1" in
    1717        -*)
    18             selarg="$selarg -D$(toupper "$1")"
     18            selarg="${selarg} -D$(toupper "$1")"
    1919            ;;
    2020        *)
    21             selarg="$selarg -DWSPKG_$(toupper "$1")"
     21            selarg="${selarg} -DWSPKG_$(toupper "$1")"
    2222            ;;
    2323    esac
     
    2525done
    2626
    27 eval "${CPP} ${CPPFLAGS} $selarg "'"$input_file"' | \
     27eval "${CPP} ${CPPFLAGS} ${selarg} "'"${input_file}"' | \
    2828    sed -e '/^#/d' -e '/^ *$/d' | tr ' ' '\n' | sed '/^ *$/d'
Note: See TracChangeset for help on using the changeset viewer.