miniupnpd/genconfig.sh : to avoid build race conditions, use a temporary file
This commit is contained in:
parent
e21e724b81
commit
8432646a76
|
@ -1,4 +1,7 @@
|
||||||
$Id: Changelog.txt,v 1.333 2013/04/20 09:03:17 nanard Exp $
|
$Id: Changelog.txt,v 1.334 2013/04/24 17:03:16 nanard Exp $
|
||||||
|
|
||||||
|
2013/04/24:
|
||||||
|
to avoid build race conditions, genconfig.sh now use a temporary file
|
||||||
|
|
||||||
2013/04/20:
|
2013/04/20:
|
||||||
use scope in get_lan_for_peer() for IPv6 addresses
|
use scope in get_lan_for_peer() for IPv6 addresses
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# $Id: genconfig.sh,v 1.61 2012/10/03 21:07:29 nanard Exp $
|
# $Id: genconfig.sh,v 1.62 2013/04/24 17:03:16 nanard Exp $
|
||||||
# miniupnp daemon
|
# miniupnp daemon
|
||||||
# http://miniupnp.free.fr or http://miniupnp.tuxfamily.org/
|
# http://miniupnp.free.fr or http://miniupnp.tuxfamily.org/
|
||||||
# (c) 2006-2012 Thomas Bernard
|
# (c) 2006-2012 Thomas Bernard
|
||||||
|
@ -29,7 +29,9 @@ esac
|
||||||
done
|
done
|
||||||
|
|
||||||
RM="rm -f"
|
RM="rm -f"
|
||||||
CONFIGFILE="config.h"
|
MV="mv"
|
||||||
|
CONFIGFILE="config.h.tmp"
|
||||||
|
CONFIGFILE_FINAL="config.h"
|
||||||
CONFIGMACRO="CONFIG_H_INCLUDED"
|
CONFIGMACRO="CONFIG_H_INCLUDED"
|
||||||
|
|
||||||
# version reported in XML descriptions
|
# version reported in XML descriptions
|
||||||
|
@ -424,4 +426,6 @@ echo "" >> ${CONFIGFILE}
|
||||||
|
|
||||||
echo "#endif" >> ${CONFIGFILE}
|
echo "#endif" >> ${CONFIGFILE}
|
||||||
|
|
||||||
|
${MV} ${CONFIGFILE} ${CONFIGFILE_FINAL}
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue