Ticket #2296: updateminiupnpcstrings.sh.patch

File updateminiupnpcstrings.sh.patch, 781 bytes (added by geirha, 13 years ago)
  • third-party/miniupnp/updateminiupnpcstrings.sh

     
    2828
    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."
    3434#cp $OUTPUT_FILE $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