Changeset 8829


Ignore:
Timestamp:
Jul 17, 2009, 8:15:53 PM (13 years ago)
Author:
charles
Message:

get autoconf and miniupnpc to play nice

Location:
trunk/third-party/miniupnp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/miniupnp/Makefile.am

    r8813 r8829  
    3636
    3737miniupnpcstrings.h: Makefile
    38         $(srcdir)/updateminiupnpcstrings.sh
     38        $(srcdir)/updateminiupnpcstrings.sh $(srcdir)/miniupnpcstrings.h.in $(builddir)/miniupnpcstrings.h
     39
     40DISTCLEANFILES = $(builddir)/miniupnpcstrings.h
  • trunk/third-party/miniupnp/updateminiupnpcstrings.sh

    r8801 r8829  
    22# $Id: updateminiupnpcstrings.sh,v 1.3 2009/07/09 16:13:31 nanard Exp $
    33
    4 FILE=miniupnpcstrings.h
     4TEMPLATE_FILE=$1
     5OUTPUT_FILE=$2
    56
    67# detecting the OS name and version
     
    3031EXPR="s/OS_STRING \".*\"/OS_STRING \"${OS_NAME}\/${OS_VERSION}\"/"
    3132#echo $EXPR
    32 #echo "Backuping $FILE to $FILE.bak."
    33 #cp $FILE $FILE.bak
    34 test -f ${FILE}.in
    35 echo "setting OS_STRING macro value to ${OS_NAME}/${OS_VERSION} in $FILE."
    36 cat ${FILE}.in | sed -e "$EXPR" > $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."
     37cat ${TEMPLATE_FILE} | sed -e "$EXPR" > $OUTPUT_FILE
    3738
Note: See TracChangeset for help on using the changeset viewer.