1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

revert updateminiupnpcstrings.sh

This commit is contained in:
Mitchell Livingston 2009-08-02 22:27:40 +00:00
parent 9422dde5e8
commit 39fdda4f22

View file

@ -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"