Changeset 8863


Ignore:
Timestamp:
Aug 2, 2009, 10:27:40 PM (13 years ago)
Author:
livings124
Message:

revert updateminiupnpcstrings.sh

File:
1 edited

Legend:

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

    r8862 r8863  
    11#! /bin/sh
    2 # $Id: updateminiupnpcstrings.sh,v 1.4 2009/07/29 08:34:01 nanard Exp $
     2# $Id: updateminiupnpcstrings.sh,v 1.3 2009/07/09 16:13:31 nanard Exp $
    33
    4 FILE=miniupnpcstrings.h
    5 TEMPLATE_FILE=${FILE}.in
     4TEMPLATE_FILE=$1
     5OUTPUT_FILE=$2
    66
    77# detecting the OS name and version
     
    3131EXPR="s|OS_STRING \".*\"|OS_STRING \"${OS_NAME}/${OS_VERSION}\"|"
    3232#echo $EXPR
    33 #echo "Backuping $FILE to $FILE.bak."
    34 #cp $FILE $FILE.bak
    35 test -f ${FILE}.in
    36 echo "setting OS_STRING macro value to ${OS_NAME}/${OS_VERSION} in $FILE."
    37 sed -e "$EXPR" < $TEMPLATE_FILE > $FILE
     33#echo "Backing up $OUTPUT_FILE to $OUTPUT_FILE.bak."
     34#cp $OUTPUT_FILE $OUTPUT_FILE.bak
     35test -f ${TEMPLATE_FILE}
     36echo "setting OS_STRING macro value to ${OS_NAME}/${OS_VERSION} in $OUTPUT_FILE."
     37sed "$EXPR" <"$TEMPLATE_FILE" >"$OUTPUT_FILE"
    3838
Note: See TracChangeset for help on using the changeset viewer.