Changeset 8859


Ignore:
Timestamp:
Jul 28, 2009, 6:03:47 PM (13 years ago)
Author:
charles
Message:

(trunk third-party) #2296: commit geirha's "quick fix" to the updateminiupnpcstrings.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/miniupnp/updateminiupnpcstrings.sh

    r8829 r8859  
    2929echo "Detected OS [$OS_NAME] version [$OS_VERSION]"
    3030
    31 EXPR="s/OS_STRING \".*\"/OS_STRING \"${OS_NAME}\/${OS_VERSION}\"/"
     31EXPR="s|OS_STRING \".*\"|OS_STRING \"${OS_NAME}/${OS_VERSION}\"|"
    3232#echo $EXPR
    3333#echo "Backing up $OUTPUT_FILE to $OUTPUT_FILE.bak."
     
    3535test -f ${TEMPLATE_FILE}
    3636echo "setting OS_STRING macro value to ${OS_NAME}/${OS_VERSION} in $OUTPUT_FILE."
    37 cat ${TEMPLATE_FILE} | sed -e "$EXPR" > $OUTPUT_FILE
     37sed "$EXPR" <"$TEMPLATE_FILE" >"$OUTPUT_FILE"
    3838
Note: See TracChangeset for help on using the changeset viewer.