mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
revert updateminiupnpcstrings.sh
This commit is contained in:
parent
9422dde5e8
commit
39fdda4f22
1 changed files with 8 additions and 8 deletions
16
third-party/miniupnp/updateminiupnpcstrings.sh
vendored
16
third-party/miniupnp/updateminiupnpcstrings.sh
vendored
|
@ -1,8 +1,8 @@
|
|||
#! /bin/sh
|
||||
# $Id: updateminiupnpcstrings.sh,v 1.4 2009/07/29 08:34:01 nanard Exp $
|
||||
# $Id: updateminiupnpcstrings.sh,v 1.3 2009/07/09 16:13:31 nanard Exp $
|
||||
|
||||
FILE=miniupnpcstrings.h
|
||||
TEMPLATE_FILE=${FILE}.in
|
||||
TEMPLATE_FILE=$1
|
||||
OUTPUT_FILE=$2
|
||||
|
||||
# detecting the OS name and version
|
||||
OS_NAME=`uname -s`
|
||||
|
@ -30,9 +30,9 @@ echo "Detected OS [$OS_NAME] version [$OS_VERSION]"
|
|||
|
||||
EXPR="s|OS_STRING \".*\"|OS_STRING \"${OS_NAME}/${OS_VERSION}\"|"
|
||||
#echo $EXPR
|
||||
#echo "Backuping $FILE to $FILE.bak."
|
||||
#cp $FILE $FILE.bak
|
||||
test -f ${FILE}.in
|
||||
echo "setting OS_STRING macro value to ${OS_NAME}/${OS_VERSION} in $FILE."
|
||||
sed -e "$EXPR" < $TEMPLATE_FILE > $FILE
|
||||
#echo "Backing up $OUTPUT_FILE to $OUTPUT_FILE.bak."
|
||||
#cp $OUTPUT_FILE $OUTPUT_FILE.bak
|
||||
test -f ${TEMPLATE_FILE}
|
||||
echo "setting OS_STRING macro value to ${OS_NAME}/${OS_VERSION} in $OUTPUT_FILE."
|
||||
sed "$EXPR" <"$TEMPLATE_FILE" >"$OUTPUT_FILE"
|
||||
|
||||
|
|
Loading…
Reference in a new issue