Fix include/serno.h generation.
Apparently #value# is no longer special in hg templates.
This commit is contained in:
parent
8b4cf5c15b
commit
a7b9067e0f
|
@ -25,7 +25,7 @@ if [ "x$TIP" = "x" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Charybdis wants the hg tip to be in include/serno.h, in its own format.
|
# Charybdis wants the hg tip to be in include/serno.h, in its own format.
|
||||||
MYTIP=`hg parents --template '#date|shortdate#_#node|short#' 2>/dev/null | sed -e s/-//g -e s/_/-/`
|
MYTIP=`hg parents --template '{date|shortdate}_{node|short}' 2>/dev/null | sed -e s/-//g -e s/_/-/`
|
||||||
echo "[charybdis] Generating include/serno.h for tip $MYTIP."
|
echo "[charybdis] Generating include/serno.h for tip $MYTIP."
|
||||||
cat << _EOF_ > include/serno.h
|
cat << _EOF_ > include/serno.h
|
||||||
/* Generated automatically by makepackage. Any changes made here will be lost. */
|
/* Generated automatically by makepackage. Any changes made here will be lost. */
|
||||||
|
|
|
@ -30,7 +30,7 @@ if [ "x$2" = "x--automatic" ]; then
|
||||||
AUTOMATIC="yes"
|
AUTOMATIC="yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TIP=`hg tip --template "#rev#:#node|short#"`
|
TIP=`hg parents --template "{rev}:{node|short}"`
|
||||||
|
|
||||||
WRKDIR=`pwd`
|
WRKDIR=`pwd`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue